| 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.33 2003-06-18 23:04:51 malsyned Exp $ |
4 | # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ |
|
|
5 | # $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.44 2003/12/09 01:12:28 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 => { |
| … | |
… | |
| 40 | setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex", |
56 | setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex", |
| 41 | userDivider => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex", |
57 | userDivider => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex", |
| 42 | postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex", |
58 | postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex", |
| 43 | }, |
59 | }, |
| 44 | screenSnippets => { |
60 | screenSnippets => { |
| 45 | setHeader => "$webworkDirs{conf}/snippets/screenSetHeader.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 => "/webwork-old/profLogin.pl", |
| 58 | ); |
77 | ); |
| 59 | |
78 | |
| 60 | ################################################################################ |
79 | ################################################################################ |
| 61 | # Default course-specific settings |
80 | # Default course-specific settings |
| 62 | ################################################################################ |
81 | ################################################################################ |
| … | |
… | |
| 71 | html_temp => "$courseRoot/html/tmp", |
90 | html_temp => "$courseRoot/html/tmp", |
| 72 | logs => "$courseRoot/logs", |
91 | logs => "$courseRoot/logs", |
| 73 | scoring => "$courseRoot/scoring", |
92 | scoring => "$courseRoot/scoring", |
| 74 | templates => "$courseRoot/templates", |
93 | templates => "$courseRoot/templates", |
| 75 | macros => "$courseRoot/templates/macros", |
94 | macros => "$courseRoot/templates/macros", |
|
|
95 | email => "$courseRoot/templates/email", |
| 76 | ); |
96 | ); |
| 77 | |
97 | |
| 78 | %courseFiles = ( |
98 | %courseFiles = ( |
| 79 | environment => "$courseDirs{root}/course.conf", |
99 | environment => "$courseDirs{root}/course.conf", |
| 80 | motd => "$courseDirs{root}/motd.txt", |
100 | motd => "$courseDirs{root}/motd.txt", |
|
|
101 | logs => { |
|
|
102 | answer_log => "$courseDirs{logs}/answer_log", |
|
|
103 | }, |
|
|
104 | course_info => "$courseDirs{root}/course_info.txt", |
|
|
105 | login_info => "$courseDirs{root}/login_info.txt", |
| 81 | ); |
106 | ); |
| 82 | |
107 | |
| 83 | # quick hack to fix transaction logging. blah. |
108 | # quick hack to fix transaction logging. blah. |
| 84 | $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; |
109 | $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; |
| 85 | $webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log"; |
110 | $webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log"; |
| … | |
… | |
| 116 | #], |
141 | #], |
| 117 | # feedbackVerbosity: |
142 | # feedbackVerbosity: |
| 118 | # 0: send only the feedback comment and context link |
143 | # 0: send only the feedback comment and context link |
| 119 | # 1: as in 0, plus user, set, problem, and PG data |
144 | # 1: as in 0, plus user, set, problem, and PG data |
| 120 | # 2: as in 1, plus the problem environment (debugging data) |
145 | # 2: as in 1, plus the problem environment (debugging data) |
| 121 | feedbackVerbosity => 1, |
146 | feedbackVerbosity => 1, |
|
|
147 | editor_window_rows => 15, |
|
|
148 | editor_window_columns => 100, |
| 122 | ); |
149 | ); |
| 123 | |
150 | |
| 124 | %externalPrograms = ( |
151 | %externalPrograms = ( |
| 125 | mkdir => "/bin/mkdir", |
152 | mkdir => "/bin/mkdir", |
| 126 | tth => "/usr/local/bin/tth", |
153 | tth => "/usr/local/bin/tth", |
| … | |
… | |
| 143 | |
170 | |
| 144 | ################################################################################ |
171 | ################################################################################ |
| 145 | # Database options |
172 | # Database options |
| 146 | ################################################################################ |
173 | ################################################################################ |
| 147 | |
174 | |
| 148 | # Several database layouts are defined in separate environment files. Select the |
175 | # Several database are defined in the file conf/database.conf and stored in the |
| 149 | # one which should be used by all courses by default, and include it. This can |
176 | # hash %dbLayouts. |
| 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"; |
177 | include "conf/database.conf"; |
| 160 | |
178 | |
| 161 | # Please read the documentation in the file that you chose to include, as there |
179 | # Select the default database layout. This can be overridden in the course.conf |
| 162 | # are layout-specific options that must be configured. |
180 | # file of a particular course. |
|
|
181 | *dbLayout = $dbLayouts{sql}; |
| 163 | |
182 | |
| 164 | ################################################################################ |
183 | ################################################################################ |
| 165 | # Authorization system |
184 | # Authorization system |
| 166 | ################################################################################ |
185 | ################################################################################ |
| 167 | |
186 | |
| … | |
… | |
| 176 | access_instructor_tools => $ta, |
195 | access_instructor_tools => $ta, |
| 177 | create_and_delete_problem_sets => $professor, |
196 | create_and_delete_problem_sets => $professor, |
| 178 | modify_problem_sets => $professor, |
197 | modify_problem_sets => $professor, |
| 179 | assign_problem_sets => $professor, |
198 | assign_problem_sets => $professor, |
| 180 | modify_student_data => $professor, |
199 | modify_student_data => $professor, |
|
|
200 | score_sets => $professor, |
|
|
201 | send_mail => $professor, |
|
|
202 | modify_classlist_files => $professor, |
|
|
203 | modify_set_def_files => $professor, |
| 181 | ); |
204 | ); |
| 182 | |
205 | |
| 183 | ################################################################################ |
206 | ################################################################################ |
| 184 | # Session options |
207 | # Session options |
| 185 | ################################################################################ |
208 | ################################################################################ |
| … | |
… | |
| 206 | ################################################################################ |
229 | ################################################################################ |
| 207 | # PG translation options |
230 | # PG translation options |
| 208 | ################################################################################ |
231 | ################################################################################ |
| 209 | |
232 | |
| 210 | %pg = ( |
233 | %pg = ( |
|
|
234 | # options for various renderers |
|
|
235 | renderers => { |
|
|
236 | "WeBWorK::PG::Remote" => { |
|
|
237 | proxy => "http://localhost:21000/RenderD" |
|
|
238 | } |
|
|
239 | }, |
|
|
240 | # currently selected renderer |
|
|
241 | renderer => "WeBWorK::PG::Local", |
|
|
242 | #renderer => "WeBWorK::PG::Remote", |
|
|
243 | # directories used by PG |
| 211 | directories => { |
244 | directories => { |
| 212 | # directories used only by PG |
245 | # directories used only by PG |
| 213 | lib => "$pgRoot/lib", |
246 | lib => "$pgRoot/lib", |
| 214 | macros => "$pgRoot/macros", |
247 | macros => "$pgRoot/macros", |
| 215 | }, # (not used yet) |
248 | }, |
| 216 | options => { |
249 | options => { |
| 217 | # default translation options |
250 | # default translation options |
| 218 | displayMode => "images", |
251 | displayMode => "images", |
| 219 | showOldAnswers => 1, |
252 | showOldAnswers => 1, |
| 220 | showCorrectAnswers => 0, |
253 | showCorrectAnswers => 0, |
| … | |
… | |
| 224 | # default grader |
257 | # default grader |
| 225 | grader => "avg_problem_grader", |
258 | grader => "avg_problem_grader", |
| 226 | }, |
259 | }, |
| 227 | # this will be customized in the course.conf file |
260 | # this will be customized in the course.conf file |
| 228 | specialPGEnvironmentVars => { |
261 | specialPGEnvironmentVars => { |
| 229 | PRINT_FILE_NAMES_FOR => ['gage','apizer','voloshin','lr003k','professor'], |
262 | PRINT_FILE_NAMES_FOR => [ qw(gage apizer voloshin lr003k professor) ], |
| 230 | CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/", |
263 | CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/", |
| 231 | CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/", |
264 | CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/", |
| 232 | CAPA_Graphics_URL => "$courseDirs{html}/CAPA_Graphics/", |
265 | CAPA_Graphics_URL => "$courseDirs{html}/CAPA_Graphics/", |
| 233 | CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/", |
266 | CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/", |
| 234 | }, |
267 | }, |
| 235 | # modules lists module names and the packages each contains |
268 | # modules lists module names and the packages each contains |
| 236 | modules => [ |
269 | modules => [ |
| 237 | [qw(DynaLoader)], |
270 | [qw(DynaLoader)], |
| 238 | [qw(Exporter)], |
271 | [qw(Exporter)], |