[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 670 Revision 1468
1#!perl 1#!perl
2################################################################################ 2################################################################################
3# WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester 3# WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester
4# $Id: global.conf.dist,v 1.4 2002-12-06 17:50:21 malsyned Exp $ 4# $Id: global.conf.dist,v 1.40 2003-08-16 01:30:46 gage Exp $
5################################################################################ 5################################################################################
6 6
7# This file is used to set up the default WeBWorK course environment for all 7# 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. 8# 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. 9# 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, 10# 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: 11# use the "my" keyword. The following variables are available to this file:
12# 12#
13# $webworkRoot directory that contains the WeBWorK distribution 13# $webworkRoot directory that contains the WeBWorK distribution
14# $webworkURL base URL handled by Apache::WeBWorK
15# $pgRoot directory that contains the PG distribution
14# $courseName name of the course being used 16# $courseName name of the course being used
15 17
16################################################################################ 18################################################################################
17# WeBWorK settings 19# WeBWorK settings
18################################################################################ 20################################################################################
22 bin => "$webworkRoot/bin", 24 bin => "$webworkRoot/bin",
23 conf => "$webworkRoot/conf", 25 conf => "$webworkRoot/conf",
24 courses => "$webworkRoot/courses", 26 courses => "$webworkRoot/courses",
25 lib => "$webworkRoot/lib", 27 lib => "$webworkRoot/lib",
26 logs => "$webworkRoot/logs", 28 logs => "$webworkRoot/logs",
27 macros => "$webworkRoot/macros", 29 macros => "$pgRoot/macros",
28 tmp => "$webworkRoot/tmp", 30 tmp => "$webworkRoot/tmp",
29); 31);
30 32
31%webworkFiles = ( 33%webworkFiles = (
32 environment => "$webworkDirs{conf}/global.conf", 34 environment => "$webworkDirs{conf}/global.conf",
33 hardcopySnippets => { 35 hardcopySnippets => {
34 preamble => "$webworkDirs{conf}/hardcopyPreamble.tex", 36 preamble => "$webworkDirs{conf}/snippets/hardcopyPreamble.tex",
35 setHeader => "$webworkDirs{conf}/hardcopySetHeader.pg", 37 setHeader => "$webworkDirs{conf}/snippets/hardcopySetHeader.pg",
36 problemDivider => "$webworkDirs{conf}/hardcopyProblemDivider.tex", 38 problemDivider => "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex",
37 setFooter => "$webworkDirs{conf}/hardcopySetFooter.pg", 39 setFooter => "$webworkDirs{conf}/snippets/hardcopySetFooter.pg",
38 setDivider => "$webworkDirs{conf}/hardcopySetDivider.tex", 40 setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex",
41 userDivider => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex",
39 postamble => "$webworkDirs{conf}/hardcopyPostamble.tex", 42 postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex",
40 }, 43 },
41 screenSnippets => { 44 screenSnippets => {
42 setHeader => "$webworkDirs{conf}/screenSetHeader.pg", 45 setHeader => "$webworkDirs{conf}/snippets/setHeader.pg",
43 }, 46 },
44 logs => { 47 logs => {
45 timing => "$webworkDirs{logs}/timing.log", 48 timing => "$webworkDirs{logs}/timing.log",
46 transaction => "$courseDirs{logs}/transaction.log",
47 }, 49 },
48); 50);
49 51
50my $webworkURLRoot = "/webwork"; # *** # this should be detected!
51%webworkURLs = ( 52%webworkURLs = (
52 root => "$webworkURLRoot", 53 root => "$webworkURLRoot",
54 home => "/webwork2_files/index.html",
53 htdocs => "/webwork_files", 55 htdocs => "/webwork2_files",
54 docs => "http://webhost.math.rochester.edu/webworkdocs/docs", 56 docs => "http://webhost.math.rochester.edu/webworkdocs/docs",
55 oldProf => "/webwork-old/profLogin.pl", 57 oldProf => "/webwork-old/profLogin.pl",
56); 58);
57 59
58################################################################################ 60################################################################################
69 html_temp => "$courseRoot/html/tmp", 71 html_temp => "$courseRoot/html/tmp",
70 logs => "$courseRoot/logs", 72 logs => "$courseRoot/logs",
71 scoring => "$courseRoot/scoring", 73 scoring => "$courseRoot/scoring",
72 templates => "$courseRoot/templates", 74 templates => "$courseRoot/templates",
73 macros => "$courseRoot/templates/macros", 75 macros => "$courseRoot/templates/macros",
76 email => "$courseRoot/templates/email",
74); 77);
75 78
76%courseFiles = ( 79%courseFiles = (
77 environment => "$courseDirs{root}/course.conf", 80 environment => "$courseDirs{root}/course.conf",
81 motd => "$courseDirs{root}/motd.txt",
82 logs => {
83 answer_log => "$courseDirs{logs}/answer_log",
84 },
85 course_info => "$courseDirs{root}/course_info.txt",
86 login_info => "$courseDirs{root}/login_info.txt",
78); 87);
88
89# quick hack to fix transaction logging. blah.
90$webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log";
91$webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log";
79 92
80my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName"; 93my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName";
81%courseURLs = ( 94%courseURLs = (
82 base => "$courseURLRoot", # *** # this should be "root"? 95 root => "$courseURLRoot",
83 html => "$courseURLRoot", 96 html => "$courseURLRoot",
84 html_temp => "$courseURLRoot/tmp", 97 html_temp => "$courseURLRoot/tmp",
85); 98);
86 99
87################################################################################ 100################################################################################
89################################################################################ 102################################################################################
90 103
91%mail = ( 104%mail = (
92 smtpServer => "mail.math.rochester.edu", 105 smtpServer => "mail.math.rochester.edu",
93 smtpSender => "webwork\@math.rochester.edu", 106 smtpSender => "webwork\@math.rochester.edu",
107 # allowedRecipients defines addresses that the PG system is allowed to
108 # send mail to. this prevents subtle PG exploits. This should be set
109 # in course.conf to the addresses of professors of each course. Sending
110 # mail from the PG system (i.e. questionaires, essay questions) will
111 # fail if this is not set somewhere (either here or in course.conf).
112 #allowedRecipients => [
113 # "yourname\@host.yourdomain.edu",
114 #],
115 # if defined, feedbackRecipients overrides the list of recipients for
116 # feedback email. It's appropriate to set this in the course.conf for
117 # specific courses, but probably not in global.conf. if not defined,
118 # mail is sent to all professors and TAs for a given course
119 #feedbackRecipients => [
120 # "prof1\@host.yourdomain.edu",
121 # "prof2\@host.yourdomain.edu",
122 #],
123 # feedbackVerbosity:
124 # 0: send only the feedback comment and context link
125 # 1: as in 0, plus user, set, problem, and PG data
126 # 2: as in 1, plus the problem environment (debugging data)
127 feedbackVerbosity => 1,
128 editor_window_rows => 15,
129 editor_window_columns => 100,
94); 130);
95 131
96%externalPrograms = ( 132%externalPrograms = (
97 mv => "/bin/mv", # *** is this used? probably not... 133 mkdir => "/bin/mkdir",
98 tth => "/usr/local/bin/tth", 134 tth => "/usr/local/bin/tth",
99 pdflatex => "/usr/local/bin/pdflatex", 135 pdflatex => "/usr/local/bin/pdflatex",
100 latex => "/usr/local/bin/latex", 136 latex => "/usr/local/bin/latex",
101 dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent", 137 #dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent",
138 dvipng => "/usr/local/bin/dvipng",
102 gif2eps => "$webworkDirs{bin}/gif2eps", 139 gif2eps => "$webworkDirs{bin}/gif2eps",
103 png2eps => "$webworkDirs{bin}/png2eps", 140 png2eps => "$webworkDirs{bin}/png2eps",
104 gif2png => "$webworkDirs{bin}/gif2png", 141 gif2png => "$webworkDirs{bin}/gif2png",
105); 142);
106 143
107################################################################################ 144################################################################################
108# Frontend options 145# Frontend options
109################################################################################ 146################################################################################
110 147
111%templates = ( 148%templates = (
112 system => "$webworkDirs{conf}/barebones.template", 149 system => "$webworkDirs{conf}/templates/ur.template",
113); 150);
151
152################################################################################
153# Database options
154################################################################################
155
156# Several database layouts are defined in separate environment files. Select the
157# one which should be used by all courses by default, and include it. This can
158# be overridden by including a difference environment file in the course.conf of
159# a particular course.
160
161# Include sql.conf to specify a database layout for use with an SQL server.
162#include "conf/sql.conf";
163
164# Include gdbm.conf to specify a database layout for WeBWorK 1.x compatible GDBM
165# databases. Use this layout if you wish to share courses between WeBWorK 1.x
166# and WeBWorK 2.
167include "conf/gdbm.conf";
168
169# Please read the documentation in the file that you chose to include, as there
170# are layout-specific options that must be configured.
171
172################################################################################
173# Authorization system
174################################################################################
175
176# This lets you specify a minimum permission level needed to perform certain
177# actions. In the current system, >=10 will allow a professor to perform the
178# action, >=5 will allow a TA to, and >=0 will allow a student to perform an
179# action (almost never what you want).
180my $ta = 5;
181my $professor = 10;
182%permissionLevels = (
183 become_student => $professor,
184 access_instructor_tools => $ta,
185 create_and_delete_problem_sets => $professor,
186 modify_problem_sets => $professor,
187 assign_problem_sets => $professor,
188 modify_student_data => $professor,
189 score_sets => $professor,
190 send_mail => $professor,
191);
192
193################################################################################
194# Session options
195################################################################################
114 196
115# $sessionKeyTimeout defines seconds of inactivity before a key expires 197# $sessionKeyTimeout defines seconds of inactivity before a key expires
116$sessionKeyTimeout = 60*30; 198$sessionKeyTimeout = 60*30;
199
200# $sessionKeyLength defines the length (in characters) of the session key
201$sessionKeyLength = 40;
202
203# @sessionKeyChars lists the legal session key characters
204@sessionKeyChars = ('A'..'Z', 'a'..'z', '0'..'9', '.', '^', '/', '!', '*');
117 205
118# Practice users are users who's names start with $practiceUser 206# Practice users are users who's names start with $practiceUser
119# (you can comment this out to remove practice user support) 207# (you can comment this out to remove practice user support)
120$practiceUserPrefix = "practice"; 208$practiceUserPrefix = "practice";
121 209
124# kindof a backdoor to the practice user system, since he doesn't have a 212# kindof a backdoor to the practice user system, since he doesn't have a
125# password. Come to think of it, why do we even have this?! 213# password. Come to think of it, why do we even have this?!
126#$debugPracticeUser = "practice666"; 214#$debugPracticeUser = "practice666";
127 215
128################################################################################ 216################################################################################
129# Database and session
130################################################################################
131
132%dbInfo = (
133 auth_type => "GDBM",
134 auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB",
135 auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB",
136 auth_keys_file => "$courseDirs{auth_DATA}/keys",
137 wwdb_type => "GDBM",
138 wwdb_file => "$courseDirs{DATA}/$courseName\_webwork_DB",
139 cldb_type => "GDBM",
140 cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB",
141 psvn_digits => 5,
142);
143
144# This lets you specify a minimum permission level needed to perform
145# certain actions. In the current system, >=10 will allow a professor
146# to perform the action, >=5 will allow a TA to, and >=0 will allow a
147# student to perform an action (almost never what you want).
148%permissionLevels = (
149 "become_student" => 10,
150);
151
152################################################################################
153# PG translation options 217# PG translation options
154################################################################################ 218################################################################################
155 219
156%pg = ( 220%pg = (
221 # options for various renderers
222 renderers => {
223 "WeBWorK::PG::Remote" => {
224 uri => "http://localhost:8089/RPC2"
225 }
226 },
227 # currently selected renderer
228 renderer => "WeBWorK::PG::Local",
229 # directories used by PG
230 # options for various renderers
231 renderers => {
232 "WeBWorK::PG::Remote" => {
233 uri => "http://localhost:8089/RPC2"
234 }
235 },
236 # currently selected renderer
237 renderer => "WeBWorK::PG::Local",
238 # directories used by PG
239 directories => {
240 # directories used only by PG
241 lib => "$pgRoot/lib",
242 macros => "$pgRoot/macros",
243 },
157 options => { 244 options => {
158 # default translation options 245 # default translation options
159 displayMode => "images", 246 displayMode => "images",
160 showOldAnswers => 1, 247 showOldAnswers => 1,
161 showCorrectAnswers => 0, 248 showCorrectAnswers => 0,
162 showHints => 0, 249 showHints => 0,
163 showSolutions => 0, 250 showSolutions => 0,
164 catchWarnings => 1, 251 catchWarnings => 0, # there's a global warning catcher now
165 # default grader 252 # default grader
166 grader => "avg_problem_grader", 253 grader => "avg_problem_grader",
254 },
255 # this will be customized in the course.conf file
256 specialPGEnvironmentVars => {
257 PRINT_FILE_NAMES_FOR => [ qw(gage apizer voloshin lr003k professor) ],
258 CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/",
259 CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/",
260 CAPA_Graphics_URL => "$courseDirs{html}/CAPA_Graphics/",
261 CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/",
167 }, 262 },
168 # modules lists module names and the packages each contains 263 # modules lists module names and the packages each contains
169 modules => [ 264 modules => [
170 [qw(DynaLoader)], 265 [qw(DynaLoader)],
171 [qw(Exporter)], 266 [qw(Exporter)],

Legend:
Removed from v.670  
changed lines
  Added in v.1468

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9