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

Legend:
Removed from v.699  
changed lines
  Added in v.2200

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9