[system] / trunk / webwork2 / conf / global.conf.dist Repository:
ViewVC logotype

Annotation of /trunk/webwork2/conf/global.conf.dist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1663 - (view) (download)

1 : sh002i 654 #!perl
2 :     ################################################################################
3 : sh002i 1663 # WeBWorK Online Homework Delivery System
4 :     # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
5 :     # $CVSHeader$
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.
16 : sh002i 654 ################################################################################
17 :    
18 :     # This file is used to set up the default WeBWorK course environment for all
19 :     # requests. Values may be overwritten by the course.conf for a specific course.
20 :     # All package variables set in this file are added to the course environment.
21 :     # If you wish to set a variable here but omit it from the course environment,
22 :     # use the "my" keyword. The following variables are available to this file:
23 :     #
24 :     # $webworkRoot directory that contains the WeBWorK distribution
25 : sh002i 695 # $webworkURL base URL handled by Apache::WeBWorK
26 : sh002i 1051 # $pgRoot directory that contains the PG distribution
27 : sh002i 654 # $courseName name of the course being used
28 :    
29 :     ################################################################################
30 : sh002i 663 # WeBWorK settings
31 :     ################################################################################
32 : sh002i 654
33 :     %webworkDirs = (
34 : sh002i 1519 root => "$webworkRoot",
35 :     DATA => "$webworkRoot/DATA",
36 : sh002i 1617 uploadCache => "$webworkRoot/DATA/uploads",
37 : sh002i 1519 bin => "$webworkRoot/bin",
38 :     conf => "$webworkRoot/conf",
39 :     courses => "$webworkRoot/courses",
40 :     htdocs => "$webworkRoot/htdocs",
41 :     htdocs_temp => "$webworkRoot/htdocs/tmp",
42 :     equationCache => "$webworkRoot/htdocs/tmp/equations",
43 :     lib => "$webworkRoot/lib",
44 :     logs => "$webworkRoot/logs",
45 :     macros => "$pgRoot/macros",
46 :     tmp => "$webworkRoot/tmp",
47 : sh002i 654 );
48 :    
49 :     %webworkFiles = (
50 : gage 1021 environment => "$webworkDirs{conf}/global.conf",
51 :     hardcopySnippets => {
52 : sh002i 1100 preamble => "$webworkDirs{conf}/snippets/hardcopyPreamble.tex",
53 :     setHeader => "$webworkDirs{conf}/snippets/hardcopySetHeader.pg",
54 :     problemDivider => "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex",
55 :     setFooter => "$webworkDirs{conf}/snippets/hardcopySetFooter.pg",
56 :     setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex",
57 : gage 1114 userDivider => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex",
58 : sh002i 1100 postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex",
59 : sh002i 654 },
60 :     screenSnippets => {
61 : gage 1380 setHeader => "$webworkDirs{conf}/snippets/setHeader.pg",
62 : sh002i 654 },
63 :     logs => {
64 : gage 1021 timing => "$webworkDirs{logs}/timing.log",
65 : sh002i 654 },
66 : sh002i 1519 equationCacheDB => "$webworkDirs{DATA}/equationcache",
67 : sh002i 654 );
68 :    
69 :     %webworkURLs = (
70 : sh002i 1519 root => "$webworkURLRoot",
71 :     home => "/webwork2_files/index.html",
72 :     htdocs => "/webwork2_files",
73 :     htdocs_temp => "/webwork2_files/tmp",
74 :     equationCache => "/webwork2_files/tmp/equations",
75 :     docs => "http://webhost.math.rochester.edu/webworkdocs/docs",
76 :     oldProf => "/webwork-old/profLogin.pl",
77 : sh002i 654 );
78 :    
79 : sh002i 663 ################################################################################
80 :     # Default course-specific settings
81 :     ################################################################################
82 :    
83 :     my $courseRoot = "$webworkDirs{courses}/$courseName";
84 :     %courseDirs = (
85 :     root => "$courseRoot",
86 :     DATA => "$courseRoot/DATA",
87 :     auth_DATA => "$courseRoot/DATA/.auth",
88 :     html => "$courseRoot/html",
89 :     html_images => "$courseRoot/html/images",
90 :     html_temp => "$courseRoot/html/tmp",
91 :     logs => "$courseRoot/logs",
92 :     scoring => "$courseRoot/scoring",
93 :     templates => "$courseRoot/templates",
94 :     macros => "$courseRoot/templates/macros",
95 : gage 1380 email => "$courseRoot/templates/email",
96 : sh002i 663 );
97 :    
98 :     %courseFiles = (
99 :     environment => "$courseDirs{root}/course.conf",
100 : sh002i 701 motd => "$courseDirs{root}/motd.txt",
101 : gage 1387 logs => {
102 :     answer_log => "$courseDirs{logs}/answer_log",
103 :     },
104 : gage 1468 course_info => "$courseDirs{root}/course_info.txt",
105 :     login_info => "$courseDirs{root}/login_info.txt",
106 : sh002i 663 );
107 :    
108 : sh002i 705 # quick hack to fix transaction logging. blah.
109 : sh002i 1032 $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log";
110 :     $webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log";
111 : sh002i 705
112 : sh002i 663 my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName";
113 : sh002i 654 %courseURLs = (
114 : sh002i 699 root => "$courseURLRoot",
115 : sh002i 654 html => "$courseURLRoot",
116 :     html_temp => "$courseURLRoot/tmp",
117 :     );
118 :    
119 :     ################################################################################
120 : sh002i 663 # Other site-specific options
121 :     ################################################################################
122 : sh002i 654
123 : sh002i 663 %mail = (
124 :     smtpServer => "mail.math.rochester.edu",
125 :     smtpSender => "webwork\@math.rochester.edu",
126 : sh002i 705 # allowedRecipients defines addresses that the PG system is allowed to
127 :     # send mail to. this prevents subtle PG exploits. This should be set
128 :     # in course.conf to the addresses of professors of each course. Sending
129 :     # mail from the PG system (i.e. questionaires, essay questions) will
130 :     # fail if this is not set somewhere (either here or in course.conf).
131 : sh002i 706 #allowedRecipients => [
132 :     # "yourname\@host.yourdomain.edu",
133 :     #],
134 : sh002i 705 # if defined, feedbackRecipients overrides the list of recipients for
135 :     # feedback email. It's appropriate to set this in the course.conf for
136 :     # specific courses, but probably not in global.conf. if not defined,
137 :     # mail is sent to all professors and TAs for a given course
138 :     #feedbackRecipients => [
139 :     # "prof1\@host.yourdomain.edu",
140 :     # "prof2\@host.yourdomain.edu",
141 :     #],
142 : sh002i 740 # feedbackVerbosity:
143 :     # 0: send only the feedback comment and context link
144 :     # 1: as in 0, plus user, set, problem, and PG data
145 :     # 2: as in 1, plus the problem environment (debugging data)
146 : gage 1380 feedbackVerbosity => 1,
147 :     editor_window_rows => 15,
148 :     editor_window_columns => 100,
149 : sh002i 654 );
150 :    
151 : sh002i 663 %externalPrograms = (
152 : sh002i 737 mkdir => "/bin/mkdir",
153 : sh002i 663 tth => "/usr/local/bin/tth",
154 :     pdflatex => "/usr/local/bin/pdflatex",
155 :     latex => "/usr/local/bin/latex",
156 : sh002i 1154 #dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent",
157 :     dvipng => "/usr/local/bin/dvipng",
158 : sh002i 663 gif2eps => "$webworkDirs{bin}/gif2eps",
159 :     png2eps => "$webworkDirs{bin}/png2eps",
160 :     gif2png => "$webworkDirs{bin}/gif2png",
161 :     );
162 :    
163 :     ################################################################################
164 :     # Frontend options
165 :     ################################################################################
166 :    
167 : sh002i 654 %templates = (
168 : sh002i 1100 system => "$webworkDirs{conf}/templates/ur.template",
169 : sh002i 654 );
170 :    
171 : sh002i 663 ################################################################################
172 : sh002i 1108 # Database options
173 : sh002i 663 ################################################################################
174 :    
175 : sh002i 1108 # Several database layouts are defined in separate environment files. Select the
176 :     # one which should be used by all courses by default, and include it. This can
177 :     # be overridden by including a difference environment file in the course.conf of
178 :     # a particular course.
179 : sh002i 768
180 : sh002i 1108 # Include sql.conf to specify a database layout for use with an SQL server.
181 :     #include "conf/sql.conf";
182 : gage 1099
183 : sh002i 1108 # Include gdbm.conf to specify a database layout for WeBWorK 1.x compatible GDBM
184 :     # databases. Use this layout if you wish to share courses between WeBWorK 1.x
185 :     # and WeBWorK 2.
186 :     include "conf/gdbm.conf";
187 : malsyned 1054
188 : sh002i 1108 # Please read the documentation in the file that you chose to include, as there
189 :     # are layout-specific options that must be configured.
190 : malsyned 1054
191 : sh002i 1108 ################################################################################
192 :     # Authorization system
193 :     ################################################################################
194 :    
195 :     # This lets you specify a minimum permission level needed to perform certain
196 :     # actions. In the current system, >=10 will allow a professor to perform the
197 :     # action, >=5 will allow a TA to, and >=0 will allow a student to perform an
198 :     # action (almost never what you want).
199 : gage 1021 my $ta = 5;
200 :     my $professor = 10;
201 : sh002i 654 %permissionLevels = (
202 : sh002i 1108 become_student => $professor,
203 :     access_instructor_tools => $ta,
204 :     create_and_delete_problem_sets => $professor,
205 :     modify_problem_sets => $professor,
206 :     assign_problem_sets => $professor,
207 : malsyned 1210 modify_student_data => $professor,
208 : malsyned 1446 score_sets => $professor,
209 : gage 1380 send_mail => $professor,
210 : sh002i 1617 modify_classlist_files => $professor,
211 :     modify_set_def_files => $professor,
212 : sh002i 654 );
213 :    
214 : sh002i 1108 ################################################################################
215 :     # Session options
216 :     ################################################################################
217 :    
218 : sh002i 768 # $sessionKeyTimeout defines seconds of inactivity before a key expires
219 :     $sessionKeyTimeout = 60*30;
220 :    
221 : sh002i 811 # $sessionKeyLength defines the length (in characters) of the session key
222 :     $sessionKeyLength = 40;
223 :    
224 :     # @sessionKeyChars lists the legal session key characters
225 :     @sessionKeyChars = ('A'..'Z', 'a'..'z', '0'..'9', '.', '^', '/', '!', '*');
226 :    
227 : sh002i 768 # Practice users are users who's names start with $practiceUser
228 :     # (you can comment this out to remove practice user support)
229 :     $practiceUserPrefix = "practice";
230 :    
231 :     # There is a practice user who can be logged in multiple times. He's
232 :     # commented out by default, though, so you don't hurt yourself. It is
233 :     # kindof a backdoor to the practice user system, since he doesn't have a
234 :     # password. Come to think of it, why do we even have this?!
235 :     #$debugPracticeUser = "practice666";
236 :    
237 : sh002i 663 ################################################################################
238 :     # PG translation options
239 :     ################################################################################
240 : sh002i 654
241 :     %pg = (
242 : sh002i 1240 # options for various renderers
243 :     renderers => {
244 :     "WeBWorK::PG::Remote" => {
245 : sh002i 1560 proxy => "http://localhost:21000/RenderD"
246 : sh002i 1240 }
247 :     },
248 :     # currently selected renderer
249 : sh002i 1242 renderer => "WeBWorK::PG::Local",
250 : sh002i 1560 #renderer => "WeBWorK::PG::Remote",
251 : sh002i 1240 # directories used by PG
252 : sh002i 1108 directories => {
253 : gage 1380 # directories used only by PG
254 : sh002i 1108 lib => "$pgRoot/lib",
255 :     macros => "$pgRoot/macros",
256 : sh002i 1240 },
257 : sh002i 654 options => {
258 : sh002i 663 # default translation options
259 : sh002i 654 displayMode => "images",
260 :     showOldAnswers => 1,
261 :     showCorrectAnswers => 0,
262 :     showHints => 0,
263 :     showSolutions => 0,
264 : sh002i 1132 catchWarnings => 0, # there's a global warning catcher now
265 : sh002i 654 # default grader
266 :     grader => "avg_problem_grader",
267 :     },
268 : gage 1099 # this will be customized in the course.conf file
269 :     specialPGEnvironmentVars => {
270 : gage 1248 PRINT_FILE_NAMES_FOR => [ qw(gage apizer voloshin lr003k professor) ],
271 : sh002i 1240 CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/",
272 :     CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/",
273 :     CAPA_Graphics_URL => "$courseDirs{html}/CAPA_Graphics/",
274 :     CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/",
275 : malsyned 1103 },
276 : sh002i 654 # modules lists module names and the packages each contains
277 :     modules => [
278 :     [qw(DynaLoader)],
279 :     [qw(Exporter)],
280 :     [qw(GD)],
281 :    
282 :     [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)],
283 :     [qw(AnswerHash AnswerEvaluator)],
284 :     [qw(WWPlot)], # required by Circle (and others)
285 :     [qw(Circle)],
286 :     [qw(Complex)],
287 :     [qw(Complex1)],
288 :     [qw(Distributions)],
289 :     [qw(Fraction)],
290 :     [qw(Fun)],
291 :     [qw(Hermite)],
292 :     [qw(Label)],
293 :     [qw(List)],
294 :     [qw(Match)],
295 :     [qw(MatrixReal1)], # required by Matrix
296 :     [qw(Matrix)],
297 :     [qw(Multiple)],
298 :     [qw(PGrandom)],
299 :     [qw(Regression)],
300 :     [qw(Select)],
301 :     [qw(Units)],
302 :     [qw(VectorField)],
303 :     ],
304 :     # defaults used by answer evaluators
305 :     ansEvalDefaults => {
306 :     functAbsTolDefault => .001,
307 :     functLLimitDefault => .0000001,
308 :     functMaxConstantOfIntegration => 1E8,
309 :     functNumOfPoints => 3,
310 :     functRelPercentTolDefault => .1,
311 :     functULimitDefault => .9999999,
312 :     functVarDefault => "x",
313 :     functZeroLevelDefault => 1E-14,
314 :     functZeroLevelTolDefault => 1E-12,
315 :     numAbsTolDefault => .001,
316 :     numFormatDefault => "",
317 :     numRelPercentTolDefault => .1,
318 :     numZeroLevelDefault => 1E-14,
319 :     numZeroLevelTolDefault => 1E-12,
320 :     },
321 :     );

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9