[system] / trunk / webwork-modperl / conf / global.conf.dist Repository:
ViewVC logotype

Diff of /trunk/webwork-modperl/conf/global.conf.dist

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 705 Revision 2381
1#!perl 1#!perl
2################################################################################ 2################################################################################
3# WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester 3# WeBWorK Online Homework Delivery System
4# $Id: global.conf.dist,v 1.10 2003-01-21 20:24:03 sh002i Exp $ 4# Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
5# $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.76 2004/06/23 21:04:17 toenail Exp $
6#
7# This program is free software; you can redistribute it and/or modify it under
8# the terms of either: (a) the GNU General Public License as published by the
9# Free Software Foundation; either version 2, or (at your option) any later
10# version, or (b) the "Artistic License" which comes with this package.
11#
12# This program is distributed in the hope that it will be useful, but WITHOUT
13# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14# FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the
15# Artistic License for more details.
5################################################################################ 16################################################################################
6 17
7# This file is used to set up the default WeBWorK course environment for all 18# This file is used to set up the default WeBWorK course environment for all
8# requests. Values may be overwritten by the course.conf for a specific course. 19# requests. Values may be overwritten by the course.conf for a specific course.
9# All package variables set in this file are added to the course environment. 20# All package variables set in this file are added to the course environment.
10# If you wish to set a variable here but omit it from the course environment, 21# If you wish to set a variable here but omit it from the course environment,
11# use the "my" keyword. The following variables are available to this file: 22# use the "my" keyword. The following variables are available to this file:
12# 23#
13# $webworkRoot directory that contains the WeBWorK distribution 24# $webworkRoot directory that contains the WeBWorK distribution
14# $webworkURL base URL handled by Apache::WeBWorK 25# $webworkURLRoot base URL handled by Apache::WeBWorK
26# $pgRoot directory that contains the PG distribution
15# $courseName name of the course being used 27# $courseName name of the course being used
16 28
17################################################################################ 29################################################################################
18# WeBWorK settings 30# WeBWorK settings
19################################################################################ 31################################################################################
20 32
21%webworkDirs = ( 33%webworkDirs = (
22 root => "$webworkRoot", 34 root => "$webworkRoot",
35 DATA => "$webworkRoot/DATA",
36 uploadCache => "$webworkRoot/DATA/uploads",
23 bin => "$webworkRoot/bin", 37 bin => "$webworkRoot/bin",
24 conf => "$webworkRoot/conf", 38 conf => "$webworkRoot/conf",
25 courses => "$webworkRoot/courses", 39 courses => "$webworkRoot/courses",
40 htdocs => "$webworkRoot/htdocs",
41 htdocs_temp => "$webworkRoot/htdocs/tmp",
42 equationCache => "$webworkRoot/htdocs/tmp/equations",
43 local_help => "$webworkRoot/htdocs/helpFiles",
26 lib => "$webworkRoot/lib", 44 lib => "$webworkRoot/lib",
27 logs => "$webworkRoot/logs", 45 logs => "$webworkRoot/logs",
28 macros => "$webworkRoot/macros", 46 macros => "$pgRoot/macros",
29 tmp => "$webworkRoot/tmp", 47 tmp => "$webworkRoot/tmp",
30); 48);
31 49
32%webworkFiles = ( 50%webworkFiles = (
33 environment => "$webworkDirs{conf}/global.conf", 51 environment => "$webworkDirs{conf}/global.conf",
34 hardcopySnippets => { 52 hardcopySnippets => {
35 preamble => "$webworkDirs{conf}/hardcopyPreamble.tex", 53 preamble => "$webworkDirs{conf}/snippets/hardcopyPreamble.tex",
36 setHeader => "$webworkDirs{conf}/hardcopySetHeader.pg", 54 setHeader => "$webworkDirs{conf}/snippets/setHeader.pg", # hardcopySetHeader.pg",
37 problemDivider => "$webworkDirs{conf}/hardcopyProblemDivider.tex", 55 problemDivider => "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex",
38 setFooter => "$webworkDirs{conf}/hardcopySetFooter.pg", 56 setFooter => "$webworkDirs{conf}/snippets/hardcopySetFooter.pg",
39 setDivider => "$webworkDirs{conf}/hardcopySetDivider.tex", 57 setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex",
58 userDivider => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex",
40 postamble => "$webworkDirs{conf}/hardcopyPostamble.tex", 59 postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex",
41 }, 60 },
42 screenSnippets => { 61 screenSnippets => {
43 setHeader => "$webworkDirs{conf}/screenSetHeader.pg", 62 setHeader => "$webworkDirs{conf}/snippets/setHeader.pg", # screenSetHeader.pg",
44 }, 63 },
45 logs => { 64 logs => {
46 timing => "$webworkDirs{logs}/timing.log", 65 timing => "$webworkDirs{logs}/timing.log",
47 transaction => "$courseDirs{logs}/transaction.log",
48 }, 66 },
67 equationCacheDB => "$webworkDirs{DATA}/equationcache",
49); 68);
50 69
51%webworkURLs = ( 70%webworkURLs = (
52 root => "$webworkURLRoot", 71 root => "$webworkURLRoot",
53 home => "http://host.yourdomaon.edu/webwork-info", 72 home => "/webwork2_files/index.html",
54 htdocs => "/webwork_files", 73 htdocs => "/webwork2_files",
74 htdocs_temp => "/webwork2_files/tmp",
75 equationCache => "/webwork2_files/tmp/equations",
55 docs => "http://webhost.math.rochester.edu/webworkdocs/docs", 76 docs => "http://webhost.math.rochester.edu/webworkdocs/docs",
77 local_help => "/webwork2_files/helpFiles",
56 oldProf => "/webwork-old/profLogin.pl", 78 oldProf => "/webwork1/profLogin.pl",
79 bugReporter => "http://bugs.webwork.rochester.edu/enter_bug.cgi?product=WeBWorK%20mod_perl",
80 jsMath => "/webwork2_files/jsMath/jsMath.js",
81 asciimath => "/webwork2_files/ASCIIMathML/ASCIIMathML.js",
57); 82);
58 83
59################################################################################ 84################################################################################
60# Default course-specific settings 85# Default course-specific settings
61################################################################################ 86################################################################################
70 html_temp => "$courseRoot/html/tmp", 95 html_temp => "$courseRoot/html/tmp",
71 logs => "$courseRoot/logs", 96 logs => "$courseRoot/logs",
72 scoring => "$courseRoot/scoring", 97 scoring => "$courseRoot/scoring",
73 templates => "$courseRoot/templates", 98 templates => "$courseRoot/templates",
74 macros => "$courseRoot/templates/macros", 99 macros => "$courseRoot/templates/macros",
100 email => "$courseRoot/templates/email",
75); 101);
76 102
77%courseFiles = ( 103%courseFiles = (
78 environment => "$courseDirs{root}/course.conf", 104 environment => "$courseDirs{root}/course.conf",
79 motd => "$courseDirs{root}/motd.txt", 105 motd => "$courseDirs{templates}/motd.txt",
106 logs => {
107 answer_log => "$courseDirs{logs}/answer_log",
108 },
109 course_info => "course_info.txt", # path relative to templates directory
110 login_info => "login_info.txt", # path relative to templates directory
80); 111);
81 112
82# quick hack to fix transaction logging. blah. 113# quick hack to fix transaction logging. blah.
83$webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; 114$webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log";
115$webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log";
84 116
85my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName"; 117my $courseURLRoot = "/webwork2_course_files/$courseName";
86%courseURLs = ( 118%courseURLs = (
87 root => "$courseURLRoot", 119 root => "$courseURLRoot",
88 html => "$courseURLRoot", 120 html => "$courseURLRoot",
89 html_temp => "$courseURLRoot/tmp", 121 html_temp => "$courseURLRoot/tmp",
90); 122);
94################################################################################ 126################################################################################
95 127
96%mail = ( 128%mail = (
97 smtpServer => "mail.math.rochester.edu", 129 smtpServer => "mail.math.rochester.edu",
98 smtpSender => "webwork\@math.rochester.edu", 130 smtpSender => "webwork\@math.rochester.edu",
131
99 # allowedRecipients defines addresses that the PG system is allowed to 132 # allowedRecipients defines addresses that the PG system is allowed to
100 # send mail to. this prevents subtle PG exploits. This should be set 133 # send mail to. this prevents subtle PG exploits. This should be set
101 # in course.conf to the addresses of professors of each course. Sending 134 # in course.conf to the addresses of professors of each course. Sending
102 # mail from the PG system (i.e. questionaires, essay questions) will 135 # mail from the PG system (i.e. questionaires, essay questions) will
103 # fail if this is not set somewhere (either here or in course.conf). 136 # fail if this is not set somewhere (either here or in course.conf).
104 allowedRecipients => [ 137 #allowedRecipients => [
105 "yourname\@host.yourdomain.edu", 138 # 'prof1@host.yourdomain.edu',
139 # 'prof2@host.yourdomain.edu',
106 ], 140 #],
141
107 # if defined, feedbackRecipients overrides the list of recipients for 142 # if defined, feedbackRecipients overrides the list of recipients for
108 # feedback email. It's appropriate to set this in the course.conf for 143 # feedback email. It's appropriate to set this in the course.conf for
109 # specific courses, but probably not in global.conf. if not defined, 144 # specific courses, but probably not in global.conf. if not defined,
110 # mail is sent to all professors and TAs for a given course 145 # mail is sent to all professors and TAs for a given course
111 #feedbackRecipients => [ 146 #feedbackRecipients => [
112 # "prof1\@host.yourdomain.edu", 147 # 'prof1@host.yourdomain.edu',
113 # "prof2\@host.yourdomain.edu", 148 # 'prof2@host.yourdomain.edu',
114 #], 149 #],
150
151 # feedbackVerbosity:
152 # 0: send only the feedback comment and context link
153 # 1: as in 0, plus user, set, problem, and PG data
154 # 2: as in 1, plus the problem environment (debugging data)
155 feedbackVerbosity => 1,
156
157 # defines the size of the Mail Merge editor window
158 # FIXME: should this be here? it's UI, not mail
159 # FIXME: replace this with the auto-size method that TWiki uses
160 editor_window_rows => 15,
161 editor_window_columns => 100,
115); 162);
116 163
117%externalPrograms = ( 164%externalPrograms = (
165 mkdir => "/bin/mkdir",
118 tth => "/usr/local/bin/tth", 166 tth => "/usr/local/bin/tth",
119 pdflatex => "/usr/local/bin/pdflatex", 167 pdflatex => "/usr/local/bin/pdflatex",
120 latex => "/usr/local/bin/latex", 168 latex => "/usr/local/bin/latex",
121 dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent", 169 dvipng => "/usr/local/bin/dvipng",
122 gif2eps => "$webworkDirs{bin}/gif2eps", 170 gif2eps => "$webworkDirs{bin}/gif2eps",
123 png2eps => "$webworkDirs{bin}/png2eps", 171 png2eps => "$webworkDirs{bin}/png2eps",
124 gif2png => "$webworkDirs{bin}/gif2png", 172 gif2png => "$webworkDirs{bin}/gif2png",
173 mysql => "/usr/local/bin/mysql",
174);
175
176%siteDefaults = (
177 status => {
178 audit => "Audit",
179 A => "Audit",
180 drop => "Drop",
181 D => "Drop",
182 withdraw => "Drop",
183 current => "Enrolled",
184 C => "Enrolled",
185 enrolled => "Enrolled",
186 },
125); 187);
126 188
127################################################################################ 189################################################################################
128# Frontend options 190# Frontend options
129################################################################################ 191################################################################################
130 192
131%templates = ( 193%templates = (
132 system => "$webworkDirs{conf}/barebones.template", 194 system => "$webworkDirs{conf}/templates/ur.template",
133); 195);
196
197################################################################################
198# Database options
199################################################################################
200
201# Several database are defined in the file conf/database.conf and stored in the
202# hash %dbLayouts.
203include "conf/database.conf";
204
205# Select the default database layout. This can be overridden in the course.conf
206# file of a particular course.
207#$dbLayoutName = "sql";
208$dbLayoutName = "gdbm";
209
210*dbLayout = $dbLayouts{$dbLayoutName};
211
212################################################################################
213# Problem library options
214################################################################################
215
216%problemLibrary = (
217 root => "", # set to the top of the problem library, if its installed
218 sourceSQL => "ProblemLibrary",
219 userSQL => "webworkRead",
220 passwordSQL => "",
221);
222
223################################################################################
224# Authorization system
225################################################################################
226
227# This lets you specify a minimum permission level needed to perform certain
228# actions. In the current system, >=10 will allow a professor to perform the
229# action, >=5 will allow a TA to, and >=0 will allow a student to perform an
230# action (almost never what you want).
231my $student = 0;
232my $ta = 5;
233my $professor = 10;
234%permissionLevels = (
235 report_bugs => $student,
236 view_multiple_sets => $ta,
237 view_unopened_sets => $ta,
238 view_unpublished_sets => $ta,
239 view_answers => $ta,
240 become_student => $professor,
241 access_instructor_tools => $ta,
242 create_and_delete_problem_sets => $professor,
243 modify_problem_sets => $professor,
244 assign_problem_sets => $professor,
245 modify_student_data => $professor,
246 score_sets => $professor,
247 send_mail => $professor,
248 modify_classlist_files => $professor,
249 modify_set_def_files => $professor,
250 modify_scoring_files => $professor,
251 create_and_delete_courses => $professor,
252 fix_course_databases => $professor,
253);
254
255################################################################################
256# Session options
257################################################################################
134 258
135# $sessionKeyTimeout defines seconds of inactivity before a key expires 259# $sessionKeyTimeout defines seconds of inactivity before a key expires
136$sessionKeyTimeout = 60*30; 260$sessionKeyTimeout = 60*30;
261
262# $sessionKeyLength defines the length (in characters) of the session key
263$sessionKeyLength = 40;
264
265# @sessionKeyChars lists the legal session key characters
266@sessionKeyChars = ('A'..'Z', 'a'..'z', '0'..'9', '.', '^', '/', '!', '*');
137 267
138# Practice users are users who's names start with $practiceUser 268# Practice users are users who's names start with $practiceUser
139# (you can comment this out to remove practice user support) 269# (you can comment this out to remove practice user support)
140$practiceUserPrefix = "practice"; 270$practiceUserPrefix = "practice";
141 271
144# kindof a backdoor to the practice user system, since he doesn't have a 274# kindof a backdoor to the practice user system, since he doesn't have a
145# password. Come to think of it, why do we even have this?! 275# password. Come to think of it, why do we even have this?!
146#$debugPracticeUser = "practice666"; 276#$debugPracticeUser = "practice666";
147 277
148################################################################################ 278################################################################################
149# Database and session
150################################################################################
151
152%dbInfo = (
153 auth_type => "GDBM",
154 auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB",
155 auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB",
156 auth_keys_file => "$courseDirs{auth_DATA}/keys",
157 wwdb_type => "GDBM",
158 wwdb_file => "$courseDirs{DATA}/$courseName\_webwork_DB",
159 cldb_type => "GDBM",
160 cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB",
161 psvn_digits => 5,
162);
163
164# This lets you specify a minimum permission level needed to perform
165# certain actions. In the current system, >=10 will allow a professor
166# to perform the action, >=5 will allow a TA to, and >=0 will allow a
167# student to perform an action (almost never what you want).
168%permissionLevels = (
169 "become_student" => 10,
170);
171
172################################################################################
173# PG translation options 279# PG translation options
174################################################################################ 280################################################################################
175 281
176%pg = ( 282%pg = (
283 # available display modes
284 displayModes => [ qw(plainText formattedText images jsMath asciimath) ],
285 # pg options
177 options => { 286 options => {
178 # default translation options 287 # default translation options
179 displayMode => "images", 288 displayMode => "images",
180 showOldAnswers => 1, 289 showOldAnswers => 1,
181 showCorrectAnswers => 0, 290 showCorrectAnswers => 0,
182 showHints => 0, 291 showHints => 0,
183 showSolutions => 0, 292 showSolutions => 0,
184 catchWarnings => 1, 293 catchWarnings => 0, # there's a global warning catcher now
185 # default grader 294 # default grader
186 grader => "avg_problem_grader", 295 grader => "avg_problem_grader",
296 },
297 # options for various renderers
298 renderers => {
299 "WeBWorK::PG::Remote" => {
300 proxy => "http://localhost:21000/RenderD"
301 }
302 },
303 # currently selected renderer
304 renderer => "WeBWorK::PG::Local",
305 #renderer => "WeBWorK::PG::Remote",
306 # directories used by PG
307 directories => {
308 # directories used only by PG
309 root => "$pgRoot",
310 lib => "$pgRoot/lib",
311 macros => "$pgRoot/macros",
312 },
313 # this can be customized in the course.conf file
314 specialPGEnvironmentVars => {
315 PRINT_FILE_NAMES_FOR => [ qw(professor) ],
316 CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/",
317 CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/",
318 CAPA_Graphics_URL => "$courseURLs{html}/CAPA_Graphics/",
319 CAPA_GraphicsDirectory => "$courseDirs{html}/CAPA_Graphics/",
320 onTheFlyImageSize => 400,
187 }, 321 },
188 # modules lists module names and the packages each contains 322 # modules lists module names and the packages each contains
189 modules => [ 323 modules => [
190 [qw(DynaLoader)], 324 [qw(DynaLoader)],
191 [qw(Exporter)], 325 [qw(Exporter)],
227 numAbsTolDefault => .001, 361 numAbsTolDefault => .001,
228 numFormatDefault => "", 362 numFormatDefault => "",
229 numRelPercentTolDefault => .1, 363 numRelPercentTolDefault => .1,
230 numZeroLevelDefault => 1E-14, 364 numZeroLevelDefault => 1E-14,
231 numZeroLevelTolDefault => 1E-12, 365 numZeroLevelTolDefault => 1E-12,
366 useBaseTenLog => 0,
367 defaultDisplayMatrixStyle => "[s]",
232 }, 368 },
233); 369);

Legend:
Removed from v.705  
changed lines
  Added in v.2381

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9