| 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.37 2003-07-14 15:21:52 gage Exp $ |
4 | # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ |
|
|
5 | # $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.62 2004/05/16 23:33:00 sh002i 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. |
| … | |
… | |
| 18 | ################################################################################ |
29 | ################################################################################ |
| 19 | # WeBWorK settings |
30 | # WeBWorK settings |
| 20 | ################################################################################ |
31 | ################################################################################ |
| 21 | |
32 | |
| 22 | %webworkDirs = ( |
33 | %webworkDirs = ( |
| 23 | root => "$webworkRoot", |
34 | root => "$webworkRoot", |
|
|
35 | DATA => "$webworkRoot/DATA", |
|
|
36 | uploadCache => "$webworkRoot/DATA/uploads", |
| 24 | bin => "$webworkRoot/bin", |
37 | bin => "$webworkRoot/bin", |
| 25 | conf => "$webworkRoot/conf", |
38 | conf => "$webworkRoot/conf", |
| 26 | courses => "$webworkRoot/courses", |
39 | courses => "$webworkRoot/courses", |
|
|
40 | htdocs => "$webworkRoot/htdocs", |
|
|
41 | htdocs_temp => "$webworkRoot/htdocs/tmp", |
|
|
42 | equationCache => "$webworkRoot/htdocs/tmp/equations", |
| 27 | lib => "$webworkRoot/lib", |
43 | lib => "$webworkRoot/lib", |
| 28 | logs => "$webworkRoot/logs", |
44 | logs => "$webworkRoot/logs", |
| 29 | macros => "$pgRoot/macros", |
45 | macros => "$pgRoot/macros", |
| 30 | tmp => "$webworkRoot/tmp", |
46 | tmp => "$webworkRoot/tmp", |
| 31 | ); |
47 | ); |
| 32 | |
48 | |
| 33 | %webworkFiles = ( |
49 | %webworkFiles = ( |
| 34 | environment => "$webworkDirs{conf}/global.conf", |
50 | environment => "$webworkDirs{conf}/global.conf", |
| 35 | hardcopySnippets => { |
51 | hardcopySnippets => { |
| … | |
… | |
| 45 | setHeader => "$webworkDirs{conf}/snippets/setHeader.pg", |
61 | setHeader => "$webworkDirs{conf}/snippets/setHeader.pg", |
| 46 | }, |
62 | }, |
| 47 | logs => { |
63 | logs => { |
| 48 | timing => "$webworkDirs{logs}/timing.log", |
64 | timing => "$webworkDirs{logs}/timing.log", |
| 49 | }, |
65 | }, |
|
|
66 | equationCacheDB => "$webworkDirs{DATA}/equationcache", |
| 50 | ); |
67 | ); |
| 51 | |
68 | |
| 52 | %webworkURLs = ( |
69 | %webworkURLs = ( |
| 53 | root => "$webworkURLRoot", |
70 | root => "$webworkURLRoot", |
| 54 | home => "/webwork2_files/index.html", |
71 | home => "/webwork2_files/index.html", |
| 55 | htdocs => "/webwork2_files", |
72 | htdocs => "/webwork2_files", |
|
|
73 | htdocs_temp => "/webwork2_files/tmp", |
|
|
74 | equationCache => "/webwork2_files/tmp/equations", |
| 56 | docs => "http://webhost.math.rochester.edu/webworkdocs/docs", |
75 | docs => "http://webhost.math.rochester.edu/webworkdocs/docs", |
| 57 | oldProf => "/webwork-old/profLogin.pl", |
76 | oldProf => "/webwork1/profLogin.pl", |
| 58 | ); |
77 | ); |
| 59 | |
78 | |
| 60 | ################################################################################ |
79 | ################################################################################ |
| 61 | # Default course-specific settings |
80 | # Default course-specific settings |
| 62 | ################################################################################ |
81 | ################################################################################ |
| … | |
… | |
| 76 | email => "$courseRoot/templates/email", |
95 | email => "$courseRoot/templates/email", |
| 77 | ); |
96 | ); |
| 78 | |
97 | |
| 79 | %courseFiles = ( |
98 | %courseFiles = ( |
| 80 | environment => "$courseDirs{root}/course.conf", |
99 | environment => "$courseDirs{root}/course.conf", |
| 81 | motd => "$courseDirs{root}/motd.txt", |
100 | motd => "$courseDirs{templates}/motd.txt", |
|
|
101 | logs => { |
|
|
102 | answer_log => "$courseDirs{logs}/answer_log", |
|
|
103 | }, |
|
|
104 | course_info => "course_info.txt", # path relative to templates directory |
|
|
105 | login_info => "login_info.txt", # path relative to templates directory |
| 82 | ); |
106 | ); |
| 83 | |
107 | |
| 84 | # quick hack to fix transaction logging. blah. |
108 | # quick hack to fix transaction logging. blah. |
| 85 | $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; |
109 | $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; |
| 86 | $webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log"; |
110 | $webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log"; |
| 87 | |
111 | |
| 88 | my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName"; |
112 | my $courseURLRoot = "/webwork2_course_files/$courseName"; |
| 89 | %courseURLs = ( |
113 | %courseURLs = ( |
| 90 | root => "$courseURLRoot", |
114 | root => "$courseURLRoot", |
| 91 | html => "$courseURLRoot", |
115 | html => "$courseURLRoot", |
| 92 | html_temp => "$courseURLRoot/tmp", |
116 | html_temp => "$courseURLRoot/tmp", |
| 93 | ); |
117 | ); |
| … | |
… | |
| 97 | ################################################################################ |
121 | ################################################################################ |
| 98 | |
122 | |
| 99 | %mail = ( |
123 | %mail = ( |
| 100 | smtpServer => "mail.math.rochester.edu", |
124 | smtpServer => "mail.math.rochester.edu", |
| 101 | smtpSender => "webwork\@math.rochester.edu", |
125 | smtpSender => "webwork\@math.rochester.edu", |
|
|
126 | |
| 102 | # allowedRecipients defines addresses that the PG system is allowed to |
127 | # allowedRecipients defines addresses that the PG system is allowed to |
| 103 | # send mail to. this prevents subtle PG exploits. This should be set |
128 | # send mail to. this prevents subtle PG exploits. This should be set |
| 104 | # in course.conf to the addresses of professors of each course. Sending |
129 | # in course.conf to the addresses of professors of each course. Sending |
| 105 | # mail from the PG system (i.e. questionaires, essay questions) will |
130 | # mail from the PG system (i.e. questionaires, essay questions) will |
| 106 | # fail if this is not set somewhere (either here or in course.conf). |
131 | # fail if this is not set somewhere (either here or in course.conf). |
| 107 | #allowedRecipients => [ |
132 | #allowedRecipients => [ |
| 108 | # "yourname\@host.yourdomain.edu", |
133 | # 'prof1@host.yourdomain.edu', |
|
|
134 | # 'prof2@host.yourdomain.edu', |
| 109 | #], |
135 | #], |
|
|
136 | |
| 110 | # if defined, feedbackRecipients overrides the list of recipients for |
137 | # if defined, feedbackRecipients overrides the list of recipients for |
| 111 | # feedback email. It's appropriate to set this in the course.conf for |
138 | # feedback email. It's appropriate to set this in the course.conf for |
| 112 | # specific courses, but probably not in global.conf. if not defined, |
139 | # specific courses, but probably not in global.conf. if not defined, |
| 113 | # mail is sent to all professors and TAs for a given course |
140 | # mail is sent to all professors and TAs for a given course |
| 114 | #feedbackRecipients => [ |
141 | #feedbackRecipients => [ |
| 115 | # "prof1\@host.yourdomain.edu", |
142 | # 'prof1@host.yourdomain.edu', |
| 116 | # "prof2\@host.yourdomain.edu", |
143 | # 'prof2@host.yourdomain.edu', |
| 117 | #], |
144 | #], |
|
|
145 | |
| 118 | # feedbackVerbosity: |
146 | # feedbackVerbosity: |
| 119 | # 0: send only the feedback comment and context link |
147 | # 0: send only the feedback comment and context link |
| 120 | # 1: as in 0, plus user, set, problem, and PG data |
148 | # 1: as in 0, plus user, set, problem, and PG data |
| 121 | # 2: as in 1, plus the problem environment (debugging data) |
149 | # 2: as in 1, plus the problem environment (debugging data) |
| 122 | feedbackVerbosity => 1, |
150 | feedbackVerbosity => 1, |
|
|
151 | |
|
|
152 | # defines the size of the Mail Merge editor window |
|
|
153 | # FIXME: should this be here? it's UI, not mail |
|
|
154 | # FIXME: replace this with the auto-size method that TWiki uses |
| 123 | editor_window_rows => 15, |
155 | editor_window_rows => 15, |
| 124 | editor_window_columns => 100, |
156 | editor_window_columns => 100, |
| 125 | ); |
157 | ); |
| 126 | |
158 | |
| 127 | %externalPrograms = ( |
159 | %externalPrograms = ( |
| 128 | mkdir => "/bin/mkdir", |
160 | mkdir => "/bin/mkdir", |
| 129 | tth => "/usr/local/bin/tth", |
161 | tth => "/usr/local/bin/tth", |
| 130 | pdflatex => "/usr/local/bin/pdflatex", |
162 | pdflatex => "/usr/local/bin/pdflatex", |
| 131 | latex => "/usr/local/bin/latex", |
163 | latex => "/usr/local/bin/latex", |
| 132 | #dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent", |
|
|
| 133 | dvipng => "/usr/local/bin/dvipng", |
164 | dvipng => "/usr/local/bin/dvipng", |
| 134 | gif2eps => "$webworkDirs{bin}/gif2eps", |
165 | gif2eps => "$webworkDirs{bin}/gif2eps", |
| 135 | png2eps => "$webworkDirs{bin}/png2eps", |
166 | png2eps => "$webworkDirs{bin}/png2eps", |
| 136 | gif2png => "$webworkDirs{bin}/gif2png", |
167 | gif2png => "$webworkDirs{bin}/gif2png", |
|
|
168 | mysql => "/usr/local/bin/mysql", |
|
|
169 | ); |
|
|
170 | |
|
|
171 | %siteDefaults = ( |
|
|
172 | status => { |
|
|
173 | audit => "Audit", |
|
|
174 | A => "Audit", |
|
|
175 | drop => "Drop", |
|
|
176 | D => "Drop", |
|
|
177 | withdraw => "Drop", |
|
|
178 | current => "Enrolled", |
|
|
179 | C => "Enrolled", |
|
|
180 | enrolled => "Enrolled", |
|
|
181 | }, |
| 137 | ); |
182 | ); |
| 138 | |
183 | |
| 139 | ################################################################################ |
184 | ################################################################################ |
| 140 | # Frontend options |
185 | # Frontend options |
| 141 | ################################################################################ |
186 | ################################################################################ |
| … | |
… | |
| 146 | |
191 | |
| 147 | ################################################################################ |
192 | ################################################################################ |
| 148 | # Database options |
193 | # Database options |
| 149 | ################################################################################ |
194 | ################################################################################ |
| 150 | |
195 | |
| 151 | # Several database layouts are defined in separate environment files. Select the |
196 | # Several database are defined in the file conf/database.conf and stored in the |
| 152 | # one which should be used by all courses by default, and include it. This can |
197 | # hash %dbLayouts. |
| 153 | # be overridden by including a difference environment file in the course.conf of |
|
|
| 154 | # a particular course. |
|
|
| 155 | |
|
|
| 156 | # Include sql.conf to specify a database layout for use with an SQL server. |
|
|
| 157 | #include "conf/sql.conf"; |
|
|
| 158 | |
|
|
| 159 | # Include gdbm.conf to specify a database layout for WeBWorK 1.x compatible GDBM |
|
|
| 160 | # databases. Use this layout if you wish to share courses between WeBWorK 1.x |
|
|
| 161 | # and WeBWorK 2. |
|
|
| 162 | include "conf/gdbm.conf"; |
198 | include "conf/database.conf"; |
| 163 | |
199 | |
| 164 | # Please read the documentation in the file that you chose to include, as there |
200 | # Select the default database layout. This can be overridden in the course.conf |
| 165 | # are layout-specific options that must be configured. |
201 | # file of a particular course. |
|
|
202 | #$dbLayoutName = "sql"; |
|
|
203 | $dbLayoutName = "gdbm"; |
|
|
204 | |
|
|
205 | *dbLayout = $dbLayouts{$dbLayoutName}; |
| 166 | |
206 | |
| 167 | ################################################################################ |
207 | ################################################################################ |
| 168 | # Authorization system |
208 | # Authorization system |
| 169 | ################################################################################ |
209 | ################################################################################ |
| 170 | |
210 | |
| … | |
… | |
| 179 | access_instructor_tools => $ta, |
219 | access_instructor_tools => $ta, |
| 180 | create_and_delete_problem_sets => $professor, |
220 | create_and_delete_problem_sets => $professor, |
| 181 | modify_problem_sets => $professor, |
221 | modify_problem_sets => $professor, |
| 182 | assign_problem_sets => $professor, |
222 | assign_problem_sets => $professor, |
| 183 | modify_student_data => $professor, |
223 | modify_student_data => $professor, |
|
|
224 | score_sets => $professor, |
| 184 | send_mail => $professor, |
225 | send_mail => $professor, |
|
|
226 | modify_classlist_files => $professor, |
|
|
227 | modify_set_def_files => $professor, |
|
|
228 | modify_scoring_files => $professor, |
|
|
229 | create_and_delete_courses => $professor, |
| 185 | ); |
230 | ); |
| 186 | |
231 | |
| 187 | ################################################################################ |
232 | ################################################################################ |
| 188 | # Session options |
233 | # Session options |
| 189 | ################################################################################ |
234 | ################################################################################ |
| … | |
… | |
| 213 | |
258 | |
| 214 | %pg = ( |
259 | %pg = ( |
| 215 | # options for various renderers |
260 | # options for various renderers |
| 216 | renderers => { |
261 | renderers => { |
| 217 | "WeBWorK::PG::Remote" => { |
262 | "WeBWorK::PG::Remote" => { |
| 218 | uri => "http://localhost:8089/RPC2" |
263 | proxy => "http://localhost:21000/RenderD" |
| 219 | } |
264 | } |
| 220 | }, |
265 | }, |
| 221 | # currently selected renderer |
266 | # currently selected renderer |
| 222 | renderer => "WeBWorK::PG::Local", |
267 | renderer => "WeBWorK::PG::Local", |
| 223 | # directories used by PG |
|
|
| 224 | # options for various renderers |
|
|
| 225 | renderers => { |
|
|
| 226 | "WeBWorK::PG::Remote" => { |
|
|
| 227 | uri => "http://localhost:8089/RPC2" |
|
|
| 228 | } |
|
|
| 229 | }, |
|
|
| 230 | # currently selected renderer |
|
|
| 231 | renderer => "WeBWorK::PG::Local", |
268 | #renderer => "WeBWorK::PG::Remote", |
| 232 | # directories used by PG |
269 | # directories used by PG |
| 233 | directories => { |
270 | directories => { |
| 234 | # directories used only by PG |
271 | # directories used only by PG |
|
|
272 | root => "$pgRoot", |
| 235 | lib => "$pgRoot/lib", |
273 | lib => "$pgRoot/lib", |
| 236 | macros => "$pgRoot/macros", |
274 | macros => "$pgRoot/macros", |
| 237 | }, |
275 | }, |
| 238 | options => { |
276 | options => { |
| 239 | # default translation options |
277 | # default translation options |
| … | |
… | |
| 246 | # default grader |
284 | # default grader |
| 247 | grader => "avg_problem_grader", |
285 | grader => "avg_problem_grader", |
| 248 | }, |
286 | }, |
| 249 | # this will be customized in the course.conf file |
287 | # this will be customized in the course.conf file |
| 250 | specialPGEnvironmentVars => { |
288 | specialPGEnvironmentVars => { |
| 251 | PRINT_FILE_NAMES_FOR => [ qw(gage apizer voloshin lr003k professor) ], |
289 | PRINT_FILE_NAMES_FOR => [ qw(professor) ], |
| 252 | CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/", |
290 | CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/", |
| 253 | CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/", |
291 | CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/", |
| 254 | CAPA_Graphics_URL => "$courseDirs{html}/CAPA_Graphics/", |
292 | CAPA_Graphics_URL => "$courseURLs{html}/CAPA_Graphics/", |
| 255 | CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/", |
293 | CAPA_GraphicsDirectory => "$courseDirs{html}/CAPA_Graphics/", |
| 256 | }, |
294 | }, |
| 257 | # modules lists module names and the packages each contains |
295 | # modules lists module names and the packages each contains |
| 258 | modules => [ |
296 | modules => [ |
| 259 | [qw(DynaLoader)], |
297 | [qw(DynaLoader)], |
| 260 | [qw(Exporter)], |
298 | [qw(Exporter)], |
| … | |
… | |
| 296 | numAbsTolDefault => .001, |
334 | numAbsTolDefault => .001, |
| 297 | numFormatDefault => "", |
335 | numFormatDefault => "", |
| 298 | numRelPercentTolDefault => .1, |
336 | numRelPercentTolDefault => .1, |
| 299 | numZeroLevelDefault => 1E-14, |
337 | numZeroLevelDefault => 1E-14, |
| 300 | numZeroLevelTolDefault => 1E-12, |
338 | numZeroLevelTolDefault => 1E-12, |
|
|
339 | useBaseTenLog => 0, |
|
|
340 | defaultDisplayMatrixStyle => "[s]", |
| 301 | }, |
341 | }, |
| 302 | ); |
342 | ); |
|
|
343 | |
|
|
344 | %problemLibrary = ( |
|
|
345 | root => "", # set to the top of the problem library, if its installed |
|
|
346 | sourceSQL => "ProblemLibrary", |
|
|
347 | userSQL => "webworkRead", |
|
|
348 | passwordSQL => "", |
|
|
349 | ) |
|
|
350 | |