[system] / branches / rel-2-1-patches / webwork2 / conf / global.conf.dist Repository:
ViewVC logotype

Diff of /branches/rel-2-1-patches/webwork2/conf/global.conf.dist

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 655 Revision 1751
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.2 2002-11-25 08:29:55 sh002i Exp $ 4# Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
5# $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.46 2004/01/05 01:06:06 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
25# $webworkURL base URL handled by Apache::WeBWorK
26# $pgRoot directory that contains the PG distribution
14# $courseName name of the course being used 27# $courseName name of the course being used
15 28
16################################################################################ 29################################################################################
30# WeBWorK settings
31################################################################################
17 32
18%webworkDirs = ( 33%webworkDirs = (
19 root => "$webworkRoot", 34 root => "$webworkRoot",
35 DATA => "$webworkRoot/DATA",
36 uploadCache => "$webworkRoot/DATA/uploads",
20 bin => "$webworkRoot/bin", 37 bin => "$webworkRoot/bin",
21 conf => "$webworkRoot/conf", 38 conf => "$webworkRoot/conf",
22 courses => "$webworkRoot/courses", 39 courses => "$webworkRoot/courses",
40 htdocs => "$webworkRoot/htdocs",
41 htdocs_temp => "$webworkRoot/htdocs/tmp",
42 equationCache => "$webworkRoot/htdocs/tmp/equations",
23 lib => "$webworkRoot/lib", 43 lib => "$webworkRoot/lib",
24 logs => "$webworkRoot/logs", 44 logs => "$webworkRoot/logs",
25 macros => "$webworkRoot/macros", 45 macros => "$pgRoot/macros",
26 tmp => "$webworkRoot/tmp", 46 tmp => "$webworkRoot/tmp",
27); 47);
48
49%webworkFiles = (
50 environment => "$webworkDirs{conf}/global.conf",
51 hardcopySnippets => {
52 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 userDivider => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex",
58 postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex",
59 },
60 screenSnippets => {
61 setHeader => "$webworkDirs{conf}/snippets/setHeader.pg",
62 },
63 logs => {
64 timing => "$webworkDirs{logs}/timing.log",
65 },
66 equationCacheDB => "$webworkDirs{DATA}/equationcache",
67);
68
69%webworkURLs = (
70 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);
78
79################################################################################
80# Default course-specific settings
81################################################################################
28 82
29my $courseRoot = "$webworkDirs{courses}/$courseName"; 83my $courseRoot = "$webworkDirs{courses}/$courseName";
30%courseDirs = ( 84%courseDirs = (
31 root => "$courseRoot", 85 root => "$courseRoot",
32 DATA => "$courseRoot/DATA", 86 DATA => "$courseRoot/DATA",
36 html_temp => "$courseRoot/html/tmp", 90 html_temp => "$courseRoot/html/tmp",
37 logs => "$courseRoot/logs", 91 logs => "$courseRoot/logs",
38 scoring => "$courseRoot/scoring", 92 scoring => "$courseRoot/scoring",
39 templates => "$courseRoot/templates", 93 templates => "$courseRoot/templates",
40 macros => "$courseRoot/templates/macros", 94 macros => "$courseRoot/templates/macros",
95 email => "$courseRoot/templates/email",
41); 96);
42 97
43%webworkFiles = ( 98%courseFiles = (
44 environment => "$webworkDirs{conf}/global.conf", 99 environment => "$courseDirs{root}/course.conf",
45 hardcopySnippets => { 100 motd => "$courseDirs{templates}/motd.txt",
46 preamble => "$webworkDirs{conf}/hardcopyPreamble.tex",
47 setHeader => "$webworkDirs{conf}/hardcopySetHeader.pg",
48 problemDivider => "$webworkDirs{conf}/hardcopyProblemDivider.tex",
49 setFooter => "$webworkDirs{conf}/hardcopySetFooter.pg",
50 setDivider => "$webworkDirs{conf}/hardcopySetDivider.tex",
51 postamble => "$webworkDirs{conf}/hardcopyPostamble.tex",
52 },
53 screenSnippets => {
54 setHeader => "$webworkDirs{conf}/screenSetHeader.pg",
55 },
56 logs => { 101 logs => {
57 timing => "$webworkDirs{logs}/timing.log", 102 answer_log => "$courseDirs{logs}/answer_log",
58 transaction => "$courseDirs{logs}/transaction.log",
59 }, 103 },
104 course_info => "$courseDirs{templates}/course_info.txt",
105 login_info => "$courseDirs{templates}/login_info.txt",
60); 106);
61 107
62%courseFiles = ( 108# quick hack to fix transaction logging. blah.
63 environment => "$courseDirs{root}/course.conf", 109$webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log";
64); 110$webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log";
65 111
66my $webworkURLRoot = "/webwork";
67%webworkURLs = (
68 root => "$webworkURLRoot",
69 htdocs => "/webwork_files",
70 docs => "http://webhost.math.rochester.edu/webworkdocs/docs",
71);
72
73my $courseURLRoot = "$webworkURLs{htdocs}/$courseName"; 112my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName";
74%courseURLs = ( 113%courseURLs = (
75 base => "$courseURLRoot", 114 root => "$courseURLRoot",
76 html => "$courseURLRoot", 115 html => "$courseURLRoot",
77 html_temp => "$courseURLRoot/tmp", 116 html_temp => "$courseURLRoot/tmp",
78); 117);
79 118
80################################################################################ 119################################################################################
120# Other site-specific options
121################################################################################
81 122
82%dbInfo = ( 123%mail = (
83 auth_type => "GDBM", 124 smtpServer => "mail.yourdomain.edu",
84 auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB", 125 smtpSender => "webwork\@yourdomain.edu",
85 auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB", 126 # allowedRecipients defines addresses that the PG system is allowed to
86 auth_keys_file => "$courseDirs{auth_DATA}/keys", 127 # send mail to. this prevents subtle PG exploits. This should be set
87 wwdb_type => "GDBM", 128 # in course.conf to the addresses of professors of each course. Sending
88 wwdb_file => "$courseDirs{DATA}/$courseName\_webwork_DB", 129 # mail from the PG system (i.e. questionaires, essay questions) will
89 cldb_type => "GDBM", 130 # fail if this is not set somewhere (either here or in course.conf).
90 cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB", 131 #allowedRecipients => [
91 psvn_digits => 5, 132 # "yourname\@host.yourdomain.edu",
133 #],
134 # 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 # 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 feedbackVerbosity => 1,
147 editor_window_rows => 15,
148 editor_window_columns => 100,
92); 149);
150
151%externalPrograms = (
152 mkdir => "/bin/mkdir",
153 tth => "/usr/local/bin/tth",
154 pdflatex => "/usr/local/bin/pdflatex",
155 latex => "/usr/local/bin/latex",
156 dvipng => "/usr/local/bin/dvipng",
157 gif2eps => "$webworkDirs{bin}/gif2eps",
158 png2eps => "$webworkDirs{bin}/png2eps",
159 gif2png => "$webworkDirs{bin}/gif2png",
160);
161
162################################################################################
163# Frontend options
164################################################################################
93 165
94%templates = ( 166%templates = (
95 system => "$webworkDirs{conf}/barebones.template", 167 system => "$webworkDirs{conf}/templates/ur.template",
96); 168);
97 169
170################################################################################
171# Database options
172################################################################################
173
174# Several database are defined in the file conf/database.conf and stored in the
175# hash %dbLayouts.
176include "conf/database.conf";
177
178# Select the default database layout. This can be overridden in the course.conf
179# file of a particular course.
180*dbLayout = $dbLayouts{sql};
181
182################################################################################
183# Authorization system
184################################################################################
185
186# This lets you specify a minimum permission level needed to perform certain
187# actions. In the current system, >=10 will allow a professor to perform the
188# action, >=5 will allow a TA to, and >=0 will allow a student to perform an
189# action (almost never what you want).
190my $ta = 5;
191my $professor = 10;
192%permissionLevels = (
193 become_student => $professor,
194 access_instructor_tools => $ta,
195 create_and_delete_problem_sets => $professor,
196 modify_problem_sets => $professor,
197 assign_problem_sets => $professor,
198 modify_student_data => $professor,
199 score_sets => $professor,
200 send_mail => $professor,
201 modify_classlist_files => $professor,
202 modify_set_def_files => $professor,
203);
204
205################################################################################
206# Session options
207################################################################################
208
98# sessionKeyTimeout defines length of inactivity before a key expires (seconds) 209# $sessionKeyTimeout defines seconds of inactivity before a key expires
99$sessionKeyTimeout = 60*30; 210$sessionKeyTimeout = 60*30;
211
212# $sessionKeyLength defines the length (in characters) of the session key
213$sessionKeyLength = 40;
214
215# @sessionKeyChars lists the legal session key characters
216@sessionKeyChars = ('A'..'Z', 'a'..'z', '0'..'9', '.', '^', '/', '!', '*');
100 217
101# Practice users are users who's names start with $practiceUser 218# Practice users are users who's names start with $practiceUser
102# (you can comment this out to remove practice user support) 219# (you can comment this out to remove practice user support)
103$practiceUserPrefix = "practice"; 220$practiceUserPrefix = "practice";
104 221
106# commented out by default, though, so you don't hurt yourself. It is 223# commented out by default, though, so you don't hurt yourself. It is
107# kindof a backdoor to the practice user system, since he doesn't have a 224# kindof a backdoor to the practice user system, since he doesn't have a
108# password. Come to think of it, why do we even have this?! 225# password. Come to think of it, why do we even have this?!
109#$debugPracticeUser = "practice666"; 226#$debugPracticeUser = "practice666";
110 227
111# This lets you specify a minimum permission level needed to perform 228################################################################################
112# certain actions. In the current system, >=10 will allow a professor
113# to perform the action, >=5 will allow a TA to, and >=0 will allow a
114# student to perform an action (almost never what you want).
115%permissionLevels = (
116 "become_student" => 10,
117);
118
119# mail
120%mail = (
121 smtpServer => "mail.math.rochester.edu",
122 smtpSender => "webwork\@math.rochester.edu",
123);
124
125# PG translation stuff 229# PG translation options
230################################################################################
231
126%pg = ( 232%pg = (
233 # options for various renderers
234 renderers => {
235 "WeBWorK::PG::Remote" => {
236 proxy => "http://localhost:21000/RenderD"
237 }
238 },
239 # currently selected renderer
240 renderer => "WeBWorK::PG::Local",
241 #renderer => "WeBWorK::PG::Remote",
242 # directories used by PG
243 directories => {
244 # directories used only by PG
245 lib => "$pgRoot/lib",
246 macros => "$pgRoot/macros",
247 },
127 options => { 248 options => {
128 # default translation options: 249 # default translation options
129 displayMode => "images", 250 displayMode => "images",
130 showOldAnswers => 1, 251 showOldAnswers => 1,
131 showCorrectAnswers => 0, 252 showCorrectAnswers => 0,
132 showHints => 0, 253 showHints => 0,
133 showSolutions => 0, 254 showSolutions => 0,
255 catchWarnings => 0, # there's a global warning catcher now
134 # default grader 256 # default grader
135 grader => "avg_problem_grader", 257 grader => "avg_problem_grader",
136 catchWarnings => 1, 258 },
259 # this will be customized in the course.conf file
260 specialPGEnvironmentVars => {
261 PRINT_FILE_NAMES_FOR => [ qw(professor) ],
262 CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/",
263 CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/",
264 CAPA_Graphics_URL => "$courseDirs{html}/CAPA_Graphics/",
265 CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/",
137 }, 266 },
138 # modules lists module names and the packages each contains 267 # modules lists module names and the packages each contains
139 modules => [ 268 modules => [
140 [qw(DynaLoader)], 269 [qw(DynaLoader)],
141 [qw(Exporter)], 270 [qw(Exporter)],
179 numRelPercentTolDefault => .1, 308 numRelPercentTolDefault => .1,
180 numZeroLevelDefault => 1E-14, 309 numZeroLevelDefault => 1E-14,
181 numZeroLevelTolDefault => 1E-12, 310 numZeroLevelTolDefault => 1E-12,
182 }, 311 },
183); 312);
184
185%externalPrograms = (
186 mv => "/bin/mv", # *** is this used? probably not...
187 tth => "/usr/local/bin/tth",
188 pdflatex => "/usr/local/bin/pdflatex",
189 latex => "/usr/local/bin/latex",
190 dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent",
191 gif2eps => "$webworkDirs{bin}/gif2eps",
192 png2eps => "$webworkDirs{bin}/png2eps",
193 gif2png => "$webworkDirs{bin}/gif2png",
194);

Legend:
Removed from v.655  
changed lines
  Added in v.1751

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9