| 1 | #!perl |
1 | #!perl |
| 2 | ################################################################################ |
2 | ################################################################################ |
| 3 | # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester |
3 | # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester |
| 4 | # $Id: global.conf.dist,v 1.3 2002-11-26 21:49:51 sh002i Exp $ |
4 | # $Id: global.conf.dist,v 1.32 2003-06-13 02:30:44 sh002i Exp $ |
| 5 | ################################################################################ |
5 | ################################################################################ |
| 6 | |
6 | |
| 7 | # This file is used to set up the default WeBWorK course environment for all |
7 | # 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. |
8 | # 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. |
9 | # 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, |
10 | # 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: |
11 | # use the "my" keyword. The following variables are available to this file: |
| 12 | # |
12 | # |
| 13 | # $webworkRoot directory that contains the WeBWorK distribution |
13 | # $webworkRoot directory that contains the WeBWorK distribution |
|
|
14 | # $webworkURL base URL handled by Apache::WeBWorK |
|
|
15 | # $pgRoot directory that contains the PG distribution |
| 14 | # $courseName name of the course being used |
16 | # $courseName name of the course being used |
| 15 | |
17 | |
| 16 | ################################################################################ |
18 | ################################################################################ |
| 17 | # WeBWorK settings |
19 | # WeBWorK settings |
| 18 | ################################################################################ |
20 | ################################################################################ |
| … | |
… | |
| 22 | bin => "$webworkRoot/bin", |
24 | bin => "$webworkRoot/bin", |
| 23 | conf => "$webworkRoot/conf", |
25 | conf => "$webworkRoot/conf", |
| 24 | courses => "$webworkRoot/courses", |
26 | courses => "$webworkRoot/courses", |
| 25 | lib => "$webworkRoot/lib", |
27 | lib => "$webworkRoot/lib", |
| 26 | logs => "$webworkRoot/logs", |
28 | logs => "$webworkRoot/logs", |
| 27 | macros => "$webworkRoot/macros", |
29 | macros => "$pgRoot/macros", |
| 28 | tmp => "$webworkRoot/tmp", |
30 | tmp => "$webworkRoot/tmp", |
| 29 | ); |
31 | ); |
| 30 | |
32 | |
| 31 | %webworkFiles = ( |
33 | %webworkFiles = ( |
| 32 | environment => "$webworkDirs{conf}/global.conf", |
34 | environment => "$webworkDirs{conf}/global.conf", |
| 33 | hardcopySnippets => { |
35 | hardcopySnippets => { |
| 34 | preamble => "$webworkDirs{conf}/hardcopyPreamble.tex", |
36 | preamble => "$webworkDirs{conf}/snippets/hardcopyPreamble.tex", |
| 35 | setHeader => "$webworkDirs{conf}/hardcopySetHeader.pg", |
37 | setHeader => "$webworkDirs{conf}/snippets/hardcopySetHeader.pg", |
| 36 | problemDivider => "$webworkDirs{conf}/hardcopyProblemDivider.tex", |
38 | problemDivider => "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex", |
| 37 | setFooter => "$webworkDirs{conf}/hardcopySetFooter.pg", |
39 | setFooter => "$webworkDirs{conf}/snippets/hardcopySetFooter.pg", |
| 38 | setDivider => "$webworkDirs{conf}/hardcopySetDivider.tex", |
40 | setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex", |
|
|
41 | userDivider => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex", |
| 39 | postamble => "$webworkDirs{conf}/hardcopyPostamble.tex", |
42 | postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex", |
| 40 | }, |
43 | }, |
| 41 | screenSnippets => { |
44 | screenSnippets => { |
| 42 | setHeader => "$webworkDirs{conf}/screenSetHeader.pg", |
45 | setHeader => "$webworkDirs{conf}/snippets/screenSetHeader.pg", |
| 43 | }, |
46 | }, |
| 44 | logs => { |
47 | logs => { |
| 45 | timing => "$webworkDirs{logs}/timing.log", |
48 | timing => "$webworkDirs{logs}/timing.log", |
| 46 | transaction => "$courseDirs{logs}/transaction.log", |
|
|
| 47 | }, |
49 | }, |
| 48 | ); |
50 | ); |
| 49 | |
51 | |
| 50 | my $webworkURLRoot = "/webwork"; # *** # this should be detected! |
|
|
| 51 | %webworkURLs = ( |
52 | %webworkURLs = ( |
| 52 | root => "$webworkURLRoot", |
53 | root => "$webworkURLRoot", |
|
|
54 | home => "/webwork2_files/index.html", |
| 53 | htdocs => "/webwork_files", |
55 | htdocs => "/webwork2_files", |
| 54 | docs => "http://webhost.math.rochester.edu/webworkdocs/docs", |
56 | docs => "http://webhost.math.rochester.edu/webworkdocs/docs", |
|
|
57 | oldProf => "/webwork-old/profLogin.pl", |
| 55 | ); |
58 | ); |
| 56 | |
59 | |
| 57 | ################################################################################ |
60 | ################################################################################ |
| 58 | # Default course-specific settings |
61 | # Default course-specific settings |
| 59 | ################################################################################ |
62 | ################################################################################ |
| … | |
… | |
| 72 | macros => "$courseRoot/templates/macros", |
75 | macros => "$courseRoot/templates/macros", |
| 73 | ); |
76 | ); |
| 74 | |
77 | |
| 75 | %courseFiles = ( |
78 | %courseFiles = ( |
| 76 | environment => "$courseDirs{root}/course.conf", |
79 | environment => "$courseDirs{root}/course.conf", |
|
|
80 | motd => "$courseDirs{root}/motd.txt", |
| 77 | ); |
81 | ); |
|
|
82 | |
|
|
83 | # quick hack to fix transaction logging. blah. |
|
|
84 | $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; |
|
|
85 | $webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log"; |
| 78 | |
86 | |
| 79 | my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName"; |
87 | my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName"; |
| 80 | %courseURLs = ( |
88 | %courseURLs = ( |
| 81 | base => "$courseURLRoot", # *** # this should be "root"? |
89 | root => "$courseURLRoot", |
| 82 | html => "$courseURLRoot", |
90 | html => "$courseURLRoot", |
| 83 | html_temp => "$courseURLRoot/tmp", |
91 | html_temp => "$courseURLRoot/tmp", |
| 84 | ); |
92 | ); |
| 85 | |
93 | |
| 86 | ################################################################################ |
94 | ################################################################################ |
| … | |
… | |
| 88 | ################################################################################ |
96 | ################################################################################ |
| 89 | |
97 | |
| 90 | %mail = ( |
98 | %mail = ( |
| 91 | smtpServer => "mail.math.rochester.edu", |
99 | smtpServer => "mail.math.rochester.edu", |
| 92 | smtpSender => "webwork\@math.rochester.edu", |
100 | smtpSender => "webwork\@math.rochester.edu", |
|
|
101 | # allowedRecipients defines addresses that the PG system is allowed to |
|
|
102 | # send mail to. this prevents subtle PG exploits. This should be set |
|
|
103 | # in course.conf to the addresses of professors of each course. Sending |
|
|
104 | # mail from the PG system (i.e. questionaires, essay questions) will |
|
|
105 | # fail if this is not set somewhere (either here or in course.conf). |
|
|
106 | #allowedRecipients => [ |
|
|
107 | # "yourname\@host.yourdomain.edu", |
|
|
108 | #], |
|
|
109 | # if defined, feedbackRecipients overrides the list of recipients for |
|
|
110 | # feedback email. It's appropriate to set this in the course.conf for |
|
|
111 | # specific courses, but probably not in global.conf. if not defined, |
|
|
112 | # mail is sent to all professors and TAs for a given course |
|
|
113 | #feedbackRecipients => [ |
|
|
114 | # "prof1\@host.yourdomain.edu", |
|
|
115 | # "prof2\@host.yourdomain.edu", |
|
|
116 | #], |
|
|
117 | # feedbackVerbosity: |
|
|
118 | # 0: send only the feedback comment and context link |
|
|
119 | # 1: as in 0, plus user, set, problem, and PG data |
|
|
120 | # 2: as in 1, plus the problem environment (debugging data) |
|
|
121 | feedbackVerbosity => 1, |
| 93 | ); |
122 | ); |
| 94 | |
123 | |
| 95 | %externalPrograms = ( |
124 | %externalPrograms = ( |
| 96 | mv => "/bin/mv", # *** is this used? probably not... |
125 | mkdir => "/bin/mkdir", |
| 97 | tth => "/usr/local/bin/tth", |
126 | tth => "/usr/local/bin/tth", |
| 98 | pdflatex => "/usr/local/bin/pdflatex", |
127 | pdflatex => "/usr/local/bin/pdflatex", |
| 99 | latex => "/usr/local/bin/latex", |
128 | latex => "/usr/local/bin/latex", |
| 100 | dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent", |
129 | #dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent", |
|
|
130 | dvipng => "/usr/local/bin/dvipng", |
| 101 | gif2eps => "$webworkDirs{bin}/gif2eps", |
131 | gif2eps => "$webworkDirs{bin}/gif2eps", |
| 102 | png2eps => "$webworkDirs{bin}/png2eps", |
132 | png2eps => "$webworkDirs{bin}/png2eps", |
| 103 | gif2png => "$webworkDirs{bin}/gif2png", |
133 | gif2png => "$webworkDirs{bin}/gif2png", |
| 104 | ); |
134 | ); |
| 105 | |
135 | |
| 106 | ################################################################################ |
136 | ################################################################################ |
| 107 | # Frontend options |
137 | # Frontend options |
| 108 | ################################################################################ |
138 | ################################################################################ |
| 109 | |
139 | |
| 110 | %templates = ( |
140 | %templates = ( |
| 111 | system => "$webworkDirs{conf}/barebones.template", |
141 | system => "$webworkDirs{conf}/templates/ur.template", |
| 112 | ); |
142 | ); |
|
|
143 | |
|
|
144 | ################################################################################ |
|
|
145 | # Database options |
|
|
146 | ################################################################################ |
|
|
147 | |
|
|
148 | # Several database layouts are defined in separate environment files. Select the |
|
|
149 | # one which should be used by all courses by default, and include it. This can |
|
|
150 | # be overridden by including a difference environment file in the course.conf of |
|
|
151 | # a particular course. |
|
|
152 | |
|
|
153 | # Include sql.conf to specify a database layout for use with an SQL server. |
|
|
154 | #include "conf/sql.conf"; |
|
|
155 | |
|
|
156 | # Include gdbm.conf to specify a database layout for WeBWorK 1.x compatible GDBM |
|
|
157 | # databases. Use this layout if you wish to share courses between WeBWorK 1.x |
|
|
158 | # and WeBWorK 2. |
|
|
159 | include "conf/gdbm.conf"; |
|
|
160 | |
|
|
161 | # Please read the documentation in the file that you chose to include, as there |
|
|
162 | # are layout-specific options that must be configured. |
|
|
163 | |
|
|
164 | ################################################################################ |
|
|
165 | # Authorization system |
|
|
166 | ################################################################################ |
|
|
167 | |
|
|
168 | # This lets you specify a minimum permission level needed to perform certain |
|
|
169 | # actions. In the current system, >=10 will allow a professor to perform the |
|
|
170 | # action, >=5 will allow a TA to, and >=0 will allow a student to perform an |
|
|
171 | # action (almost never what you want). |
|
|
172 | my $ta = 5; |
|
|
173 | my $professor = 10; |
|
|
174 | %permissionLevels = ( |
|
|
175 | become_student => $professor, |
|
|
176 | access_instructor_tools => $ta, |
|
|
177 | create_and_delete_problem_sets => $professor, |
|
|
178 | modify_problem_sets => $professor, |
|
|
179 | assign_problem_sets => $professor, |
|
|
180 | ); |
|
|
181 | |
|
|
182 | ################################################################################ |
|
|
183 | # Session options |
|
|
184 | ################################################################################ |
| 113 | |
185 | |
| 114 | # $sessionKeyTimeout defines seconds of inactivity before a key expires |
186 | # $sessionKeyTimeout defines seconds of inactivity before a key expires |
| 115 | $sessionKeyTimeout = 60*30; |
187 | $sessionKeyTimeout = 60*30; |
|
|
188 | |
|
|
189 | # $sessionKeyLength defines the length (in characters) of the session key |
|
|
190 | $sessionKeyLength = 40; |
|
|
191 | |
|
|
192 | # @sessionKeyChars lists the legal session key characters |
|
|
193 | @sessionKeyChars = ('A'..'Z', 'a'..'z', '0'..'9', '.', '^', '/', '!', '*'); |
| 116 | |
194 | |
| 117 | # Practice users are users who's names start with $practiceUser |
195 | # Practice users are users who's names start with $practiceUser |
| 118 | # (you can comment this out to remove practice user support) |
196 | # (you can comment this out to remove practice user support) |
| 119 | $practiceUserPrefix = "practice"; |
197 | $practiceUserPrefix = "practice"; |
| 120 | |
198 | |
| … | |
… | |
| 123 | # kindof a backdoor to the practice user system, since he doesn't have a |
201 | # kindof a backdoor to the practice user system, since he doesn't have a |
| 124 | # password. Come to think of it, why do we even have this?! |
202 | # password. Come to think of it, why do we even have this?! |
| 125 | #$debugPracticeUser = "practice666"; |
203 | #$debugPracticeUser = "practice666"; |
| 126 | |
204 | |
| 127 | ################################################################################ |
205 | ################################################################################ |
| 128 | # Database and session |
|
|
| 129 | ################################################################################ |
|
|
| 130 | |
|
|
| 131 | %dbInfo = ( |
|
|
| 132 | auth_type => "GDBM", |
|
|
| 133 | auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB", |
|
|
| 134 | auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB", |
|
|
| 135 | auth_keys_file => "$courseDirs{auth_DATA}/keys", |
|
|
| 136 | wwdb_type => "GDBM", |
|
|
| 137 | wwdb_file => "$courseDirs{DATA}/$courseName\_webwork_DB", |
|
|
| 138 | cldb_type => "GDBM", |
|
|
| 139 | cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB", |
|
|
| 140 | psvn_digits => 5, |
|
|
| 141 | ); |
|
|
| 142 | |
|
|
| 143 | # This lets you specify a minimum permission level needed to perform |
|
|
| 144 | # certain actions. In the current system, >=10 will allow a professor |
|
|
| 145 | # to perform the action, >=5 will allow a TA to, and >=0 will allow a |
|
|
| 146 | # student to perform an action (almost never what you want). |
|
|
| 147 | %permissionLevels = ( |
|
|
| 148 | "become_student" => 10, |
|
|
| 149 | ); |
|
|
| 150 | |
|
|
| 151 | ################################################################################ |
|
|
| 152 | # PG translation options |
206 | # PG translation options |
| 153 | ################################################################################ |
207 | ################################################################################ |
| 154 | |
208 | |
| 155 | %pg = ( |
209 | %pg = ( |
|
|
210 | directories => { |
|
|
211 | # directories used only by PG |
|
|
212 | lib => "$pgRoot/lib", |
|
|
213 | macros => "$pgRoot/macros", |
|
|
214 | }, # (not used yet) |
| 156 | options => { |
215 | options => { |
| 157 | # default translation options |
216 | # default translation options |
| 158 | displayMode => "images", |
217 | displayMode => "images", |
| 159 | showOldAnswers => 1, |
218 | showOldAnswers => 1, |
| 160 | showCorrectAnswers => 0, |
219 | showCorrectAnswers => 0, |
| 161 | showHints => 0, |
220 | showHints => 0, |
| 162 | showSolutions => 0, |
221 | showSolutions => 0, |
| 163 | catchWarnings => 1, |
222 | catchWarnings => 0, # there's a global warning catcher now |
| 164 | # default grader |
223 | # default grader |
| 165 | grader => "avg_problem_grader", |
224 | grader => "avg_problem_grader", |
|
|
225 | }, |
|
|
226 | # this will be customized in the course.conf file |
|
|
227 | specialPGEnvironmentVars => { |
|
|
228 | PRINT_FILE_NAMES_FOR => ['gage','apizer','voloshin','lr003k','professor'], |
|
|
229 | CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/", |
|
|
230 | CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/", |
|
|
231 | CAPA_Graphics_URL => "$courseDirs{html}/CAPA_Graphics/", |
|
|
232 | CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/", |
| 166 | }, |
233 | }, |
| 167 | # modules lists module names and the packages each contains |
234 | # modules lists module names and the packages each contains |
| 168 | modules => [ |
235 | modules => [ |
| 169 | [qw(DynaLoader)], |
236 | [qw(DynaLoader)], |
| 170 | [qw(Exporter)], |
237 | [qw(Exporter)], |