[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 706 Revision 2182
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.11 2003-01-21 20:25:51 sh002i Exp $ 4# Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
5# $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.66 2004/05/23 01:38:16 gage 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# $webworkURL 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",
26 lib => "$webworkRoot/lib", 43 lib => "$webworkRoot/lib",
27 logs => "$webworkRoot/logs", 44 logs => "$webworkRoot/logs",
28 macros => "$webworkRoot/macros", 45 macros => "$pgRoot/macros",
29 tmp => "$webworkRoot/tmp", 46 tmp => "$webworkRoot/tmp",
47 libraryRoot => "", # set to the top of the problem library, if its installed
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 jsMath => "/webwork2_files/jsMath/jsMath.js",
57); 80);
58 81
59################################################################################ 82################################################################################
60# Default course-specific settings 83# Default course-specific settings
61################################################################################ 84################################################################################
70 html_temp => "$courseRoot/html/tmp", 93 html_temp => "$courseRoot/html/tmp",
71 logs => "$courseRoot/logs", 94 logs => "$courseRoot/logs",
72 scoring => "$courseRoot/scoring", 95 scoring => "$courseRoot/scoring",
73 templates => "$courseRoot/templates", 96 templates => "$courseRoot/templates",
74 macros => "$courseRoot/templates/macros", 97 macros => "$courseRoot/templates/macros",
98 email => "$courseRoot/templates/email",
75); 99);
76 100
77%courseFiles = ( 101%courseFiles = (
78 environment => "$courseDirs{root}/course.conf", 102 environment => "$courseDirs{root}/course.conf",
79 motd => "$courseDirs{root}/motd.txt", 103 motd => "$courseDirs{templates}/motd.txt",
104 logs => {
105 answer_log => "$courseDirs{logs}/answer_log",
106 },
107 course_info => "course_info.txt", # path relative to templates directory
108 login_info => "login_info.txt", # path relative to templates directory
80); 109);
81 110
82# quick hack to fix transaction logging. blah. 111# quick hack to fix transaction logging. blah.
83$webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; 112$webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log";
113$webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log";
84 114
85my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName"; 115my $courseURLRoot = "/webwork2_course_files/$courseName";
86%courseURLs = ( 116%courseURLs = (
87 root => "$courseURLRoot", 117 root => "$courseURLRoot",
88 html => "$courseURLRoot", 118 html => "$courseURLRoot",
89 html_temp => "$courseURLRoot/tmp", 119 html_temp => "$courseURLRoot/tmp",
90); 120);
94################################################################################ 124################################################################################
95 125
96%mail = ( 126%mail = (
97 smtpServer => "mail.math.rochester.edu", 127 smtpServer => "mail.math.rochester.edu",
98 smtpSender => "webwork\@math.rochester.edu", 128 smtpSender => "webwork\@math.rochester.edu",
129
99 # allowedRecipients defines addresses that the PG system is allowed to 130 # allowedRecipients defines addresses that the PG system is allowed to
100 # send mail to. this prevents subtle PG exploits. This should be set 131 # 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 132 # in course.conf to the addresses of professors of each course. Sending
102 # mail from the PG system (i.e. questionaires, essay questions) will 133 # 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). 134 # fail if this is not set somewhere (either here or in course.conf).
104 #allowedRecipients => [ 135 #allowedRecipients => [
105 # "yourname\@host.yourdomain.edu", 136 # 'prof1@host.yourdomain.edu',
137 # 'prof2@host.yourdomain.edu',
106 #], 138 #],
139
107 # if defined, feedbackRecipients overrides the list of recipients for 140 # if defined, feedbackRecipients overrides the list of recipients for
108 # feedback email. It's appropriate to set this in the course.conf for 141 # 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, 142 # specific courses, but probably not in global.conf. if not defined,
110 # mail is sent to all professors and TAs for a given course 143 # mail is sent to all professors and TAs for a given course
111 #feedbackRecipients => [ 144 #feedbackRecipients => [
112 # "prof1\@host.yourdomain.edu", 145 # 'prof1@host.yourdomain.edu',
113 # "prof2\@host.yourdomain.edu", 146 # 'prof2@host.yourdomain.edu',
114 #], 147 #],
148
149 # feedbackVerbosity:
150 # 0: send only the feedback comment and context link
151 # 1: as in 0, plus user, set, problem, and PG data
152 # 2: as in 1, plus the problem environment (debugging data)
153 feedbackVerbosity => 1,
154
155 # defines the size of the Mail Merge editor window
156 # FIXME: should this be here? it's UI, not mail
157 # FIXME: replace this with the auto-size method that TWiki uses
158 editor_window_rows => 15,
159 editor_window_columns => 100,
115); 160);
116 161
117%externalPrograms = ( 162%externalPrograms = (
163 mkdir => "/bin/mkdir",
118 tth => "/usr/local/bin/tth", 164 tth => "/usr/local/bin/tth",
119 pdflatex => "/usr/local/bin/pdflatex", 165 pdflatex => "/usr/local/bin/pdflatex",
120 latex => "/usr/local/bin/latex", 166 latex => "/usr/local/bin/latex",
121 dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent", 167 dvipng => "/usr/local/bin/dvipng",
122 gif2eps => "$webworkDirs{bin}/gif2eps", 168 gif2eps => "$webworkDirs{bin}/gif2eps",
123 png2eps => "$webworkDirs{bin}/png2eps", 169 png2eps => "$webworkDirs{bin}/png2eps",
124 gif2png => "$webworkDirs{bin}/gif2png", 170 gif2png => "$webworkDirs{bin}/gif2png",
171 mysql => "/usr/local/bin/mysql",
172);
173
174%siteDefaults = (
175 status => {
176 audit => "Audit",
177 A => "Audit",
178 drop => "Drop",
179 D => "Drop",
180 withdraw => "Drop",
181 current => "Enrolled",
182 C => "Enrolled",
183 enrolled => "Enrolled",
184 },
125); 185);
126 186
127################################################################################ 187################################################################################
128# Frontend options 188# Frontend options
129################################################################################ 189################################################################################
130 190
131%templates = ( 191%templates = (
132 system => "$webworkDirs{conf}/barebones.template", 192 system => "$webworkDirs{conf}/templates/ur.template",
133); 193);
194
195################################################################################
196# Database options
197################################################################################
198
199# Several database are defined in the file conf/database.conf and stored in the
200# hash %dbLayouts.
201include "conf/database.conf";
202
203# Select the default database layout. This can be overridden in the course.conf
204# file of a particular course.
205#$dbLayoutName = "sql";
206$dbLayoutName = "gdbm";
207
208*dbLayout = $dbLayouts{$dbLayoutName};
209
210################################################################################
211# Problem library options
212################################################################################
213
214%problemLibrary = (
215 root => "", # set to the top of the problem library, if its installed
216 sourceSQL => "ProblemLibrary",
217 userSQL => "webworkRead",
218 passwordSQL => "",
219);
220
221################################################################################
222# Authorization system
223################################################################################
224
225# This lets you specify a minimum permission level needed to perform certain
226# actions. In the current system, >=10 will allow a professor to perform the
227# action, >=5 will allow a TA to, and >=0 will allow a student to perform an
228# action (almost never what you want).
229my $ta = 5;
230my $professor = 10;
231%permissionLevels = (
232 become_student => $professor,
233 access_instructor_tools => $ta,
234 create_and_delete_problem_sets => $professor,
235 modify_problem_sets => $professor,
236 assign_problem_sets => $professor,
237 modify_student_data => $professor,
238 score_sets => $professor,
239 send_mail => $professor,
240 modify_classlist_files => $professor,
241 modify_set_def_files => $professor,
242 modify_scoring_files => $professor,
243 create_and_delete_courses => $professor,
244);
245
246################################################################################
247# Session options
248################################################################################
134 249
135# $sessionKeyTimeout defines seconds of inactivity before a key expires 250# $sessionKeyTimeout defines seconds of inactivity before a key expires
136$sessionKeyTimeout = 60*30; 251$sessionKeyTimeout = 60*30;
252
253# $sessionKeyLength defines the length (in characters) of the session key
254$sessionKeyLength = 40;
255
256# @sessionKeyChars lists the legal session key characters
257@sessionKeyChars = ('A'..'Z', 'a'..'z', '0'..'9', '.', '^', '/', '!', '*');
137 258
138# Practice users are users who's names start with $practiceUser 259# Practice users are users who's names start with $practiceUser
139# (you can comment this out to remove practice user support) 260# (you can comment this out to remove practice user support)
140$practiceUserPrefix = "practice"; 261$practiceUserPrefix = "practice";
141 262
144# kindof a backdoor to the practice user system, since he doesn't have a 265# 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?! 266# password. Come to think of it, why do we even have this?!
146#$debugPracticeUser = "practice666"; 267#$debugPracticeUser = "practice666";
147 268
148################################################################################ 269################################################################################
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 270# PG translation options
174################################################################################ 271################################################################################
175 272
176%pg = ( 273%pg = (
274 # options for various renderers
275 renderers => {
276 "WeBWorK::PG::Remote" => {
277 proxy => "http://localhost:21000/RenderD"
278 }
279 },
280 # currently selected renderer
281 renderer => "WeBWorK::PG::Local",
282 #renderer => "WeBWorK::PG::Remote",
283 # directories used by PG
284 directories => {
285 # directories used only by PG
286 root => "$pgRoot",
287 lib => "$pgRoot/lib",
288 macros => "$pgRoot/macros",
289 },
177 options => { 290 options => {
178 # default translation options 291 # default translation options
179 displayMode => "images", 292 displayMode => "images",
180 showOldAnswers => 1, 293 showOldAnswers => 1,
181 showCorrectAnswers => 0, 294 showCorrectAnswers => 0,
182 showHints => 0, 295 showHints => 0,
183 showSolutions => 0, 296 showSolutions => 0,
184 catchWarnings => 1, 297 catchWarnings => 0, # there's a global warning catcher now
185 # default grader 298 # default grader
186 grader => "avg_problem_grader", 299 grader => "avg_problem_grader",
300 },
301 # this will be customized in the course.conf file
302 specialPGEnvironmentVars => {
303 PRINT_FILE_NAMES_FOR => [ qw(professor) ],
304 CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/",
305 CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/",
306 CAPA_Graphics_URL => "$courseURLs{html}/CAPA_Graphics/",
307 CAPA_GraphicsDirectory => "$courseDirs{html}/CAPA_Graphics/",
187 }, 308 },
188 # modules lists module names and the packages each contains 309 # modules lists module names and the packages each contains
189 modules => [ 310 modules => [
190 [qw(DynaLoader)], 311 [qw(DynaLoader)],
191 [qw(Exporter)], 312 [qw(Exporter)],
227 numAbsTolDefault => .001, 348 numAbsTolDefault => .001,
228 numFormatDefault => "", 349 numFormatDefault => "",
229 numRelPercentTolDefault => .1, 350 numRelPercentTolDefault => .1,
230 numZeroLevelDefault => 1E-14, 351 numZeroLevelDefault => 1E-14,
231 numZeroLevelTolDefault => 1E-12, 352 numZeroLevelTolDefault => 1E-12,
353 useBaseTenLog => 0,
354 defaultDisplayMatrixStyle => "[s]",
232 }, 355 },
233); 356);

Legend:
Removed from v.706  
changed lines
  Added in v.2182

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9