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

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

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

Revision 1017 Revision 1965
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.19 2003-06-04 23:47:33 malsyned Exp $ 4# Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
5# $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.56 2004/04/09 20:18:01 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",
30); 47);
31 48
32%webworkFiles = ( 49%webworkFiles = (
33 environment => "$webworkDirs{conf}/global.conf", 50 environment => "$webworkDirs{conf}/global.conf",
34 hardcopySnippets => { 51 hardcopySnippets => {
35 preamble => "$webworkDirs{conf}/hardcopyPreamble.tex", 52 preamble => "$webworkDirs{conf}/snippets/hardcopyPreamble.tex",
36 setHeader => "$webworkDirs{conf}/hardcopySetHeader.pg", 53 setHeader => "$webworkDirs{conf}/snippets/hardcopySetHeader.pg",
37 problemDivider => "$webworkDirs{conf}/hardcopyProblemDivider.tex", 54 problemDivider => "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex",
38 setFooter => "$webworkDirs{conf}/hardcopySetFooter.pg", 55 setFooter => "$webworkDirs{conf}/snippets/hardcopySetFooter.pg",
39 setDivider => "$webworkDirs{conf}/hardcopySetDivider.tex", 56 setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex",
57 userDivider => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex",
40 postamble => "$webworkDirs{conf}/hardcopyPostamble.tex", 58 postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex",
41 }, 59 },
42 screenSnippets => { 60 screenSnippets => {
43 setHeader => "$webworkDirs{conf}/screenSetHeader.pg", 61 setHeader => "$webworkDirs{conf}/snippets/setHeader.pg",
44 }, 62 },
45 logs => { 63 logs => {
46 timing => "$webworkDirs{logs}/timing.log", 64 timing => "$webworkDirs{logs}/timing.log",
47 }, 65 },
66 equationCacheDB => "$webworkDirs{DATA}/equationcache",
48); 67);
49 68
50%webworkURLs = ( 69%webworkURLs = (
51 root => "$webworkURLRoot", 70 root => "$webworkURLRoot",
52 home => "http://host.yourdomaon.edu/webwork-info", 71 home => "/webwork2_files/index.html",
53 htdocs => "/webwork_files", 72 htdocs => "/webwork2_files",
73 htdocs_temp => "/webwork2_files/tmp",
74 equationCache => "/webwork2_files/tmp/equations",
54 docs => "http://webhost.math.rochester.edu/webworkdocs/docs", 75 docs => "http://webhost.math.rochester.edu/webworkdocs/docs",
55 oldProf => "/webwork-old/profLogin.pl", 76 oldProf => "/webwork1/profLogin.pl",
56); 77);
57 78
58################################################################################ 79################################################################################
59# Default course-specific settings 80# Default course-specific settings
60################################################################################ 81################################################################################
69 html_temp => "$courseRoot/html/tmp", 90 html_temp => "$courseRoot/html/tmp",
70 logs => "$courseRoot/logs", 91 logs => "$courseRoot/logs",
71 scoring => "$courseRoot/scoring", 92 scoring => "$courseRoot/scoring",
72 templates => "$courseRoot/templates", 93 templates => "$courseRoot/templates",
73 macros => "$courseRoot/templates/macros", 94 macros => "$courseRoot/templates/macros",
95 email => "$courseRoot/templates/email",
74); 96);
75 97
76%courseFiles = ( 98%courseFiles = (
77 environment => "$courseDirs{root}/course.conf", 99 environment => "$courseDirs{root}/course.conf",
78 motd => "$courseDirs{root}/motd.txt", 100 motd => "$courseDirs{templates}/motd.txt",
101 logs => {
102 answer_log => "$courseDirs{logs}/answer_log",
103 },
104 course_info => "course_info.txt", # path relative to templates directory
105 login_info => "login_info.txt", # path relative to templates directory
79); 106);
80 107
81# quick hack to fix transaction logging. blah. 108# quick hack to fix transaction logging. blah.
82$webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; 109$webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log";
110$webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log";
83 111
84my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName"; 112my $courseURLRoot = "/webwork2_courses/$courseName";
85%courseURLs = ( 113%courseURLs = (
86 root => "$courseURLRoot", 114 root => "$courseURLRoot",
87 html => "$courseURLRoot", 115 html => "$courseURLRoot",
88 html_temp => "$courseURLRoot/tmp", 116 html_temp => "$courseURLRoot/tmp",
89); 117);
93################################################################################ 121################################################################################
94 122
95%mail = ( 123%mail = (
96 smtpServer => "mail.math.rochester.edu", 124 smtpServer => "mail.math.rochester.edu",
97 smtpSender => "webwork\@math.rochester.edu", 125 smtpSender => "webwork\@math.rochester.edu",
126
98 # allowedRecipients defines addresses that the PG system is allowed to 127 # allowedRecipients defines addresses that the PG system is allowed to
99 # send mail to. this prevents subtle PG exploits. This should be set 128 # send mail to. this prevents subtle PG exploits. This should be set
100 # in course.conf to the addresses of professors of each course. Sending 129 # in course.conf to the addresses of professors of each course. Sending
101 # mail from the PG system (i.e. questionaires, essay questions) will 130 # mail from the PG system (i.e. questionaires, essay questions) will
102 # fail if this is not set somewhere (either here or in course.conf). 131 # fail if this is not set somewhere (either here or in course.conf).
103 #allowedRecipients => [ 132 #allowedRecipients => [
104 # "yourname\@host.yourdomain.edu", 133 # 'prof1@host.yourdomain.edu',
134 # 'prof2@host.yourdomain.edu',
105 #], 135 #],
136
106 # if defined, feedbackRecipients overrides the list of recipients for 137 # if defined, feedbackRecipients overrides the list of recipients for
107 # feedback email. It's appropriate to set this in the course.conf for 138 # feedback email. It's appropriate to set this in the course.conf for
108 # specific courses, but probably not in global.conf. if not defined, 139 # specific courses, but probably not in global.conf. if not defined,
109 # mail is sent to all professors and TAs for a given course 140 # mail is sent to all professors and TAs for a given course
110 #feedbackRecipients => [ 141 #feedbackRecipients => [
111 # "prof1\@host.yourdomain.edu", 142 # 'prof1@host.yourdomain.edu',
112 # "prof2\@host.yourdomain.edu", 143 # 'prof2@host.yourdomain.edu',
113 #], 144 #],
145
114 # feedbackVerbosity: 146 # feedbackVerbosity:
115 # 0: send only the feedback comment and context link 147 # 0: send only the feedback comment and context link
116 # 1: as in 0, plus user, set, problem, and PG data 148 # 1: as in 0, plus user, set, problem, and PG data
117 # 2: as in 1, plus the problem environment (debugging data) 149 # 2: as in 1, plus the problem environment (debugging data)
118 feedbackVerbosity => 1, 150 feedbackVerbosity => 1,
151
152 # defines the size of the Mail Merge editor window
153 # FIXME: should this be here? it's UI, not mail
154 # FIXME: replace this with the auto-size method that TWiki uses
155 editor_window_rows => 15,
156 editor_window_columns => 100,
119); 157);
120 158
121%externalPrograms = ( 159%externalPrograms = (
122 mkdir => "/bin/mkdir", 160 mkdir => "/bin/mkdir",
123 tth => "/usr/local/bin/tth", 161 tth => "/usr/local/bin/tth",
124 pdflatex => "/usr/local/bin/pdflatex", 162 pdflatex => "/usr/local/bin/pdflatex",
125 latex => "/usr/local/bin/latex", 163 latex => "/usr/local/bin/latex",
126 dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent", 164 dvipng => "/usr/local/bin/dvipng",
127 gif2eps => "$webworkDirs{bin}/gif2eps", 165 gif2eps => "$webworkDirs{bin}/gif2eps",
128 png2eps => "$webworkDirs{bin}/png2eps", 166 png2eps => "$webworkDirs{bin}/png2eps",
129 gif2png => "$webworkDirs{bin}/gif2png", 167 gif2png => "$webworkDirs{bin}/gif2png",
168 mysql => "/usr/local/bin/mysql",
130); 169);
131 170
132################################################################################ 171################################################################################
133# Frontend options 172# Frontend options
134################################################################################ 173################################################################################
135 174
136%templates = ( 175%templates = (
137 system => "$webworkDirs{conf}/barebones.template", 176 system => "$webworkDirs{conf}/templates/ur.template",
138); 177);
139 178
140################################################################################ 179################################################################################
141# Database and session 180# Database options
142################################################################################ 181################################################################################
143 182
144# dbInfo records some data for the "old" WW/Classlist/Auth.pm database system 183# Several database are defined in the file conf/database.conf and stored in the
145# {auth,wwdb,cldb}_type = database type: GDBM currently implemented 184# hash %dbLayouts.
146# {auth_passwd,auth_perm,auth_keys,wwdb,cldb}_file = path to database file 185include "conf/database.conf";
147%dbInfo = (
148 auth_type => "GDBM",
149 auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB",
150 auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB",
151 auth_keys_file => "$courseDirs{auth_DATA}/keys",
152 wwdb_type => "GDBM",
153 wwdb_file => "$courseDirs{DATA}/$courseName\_webwork_DB",
154 cldb_type => "GDBM",
155 cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB",
156 psvn_digits => 5,
157);
158 186
159# dbLayout records the schema and source for each table in the "new" DB.pm 187# Select the default database layout. This can be overridden in the course.conf
160# database system. consult DB.pm for the authoritative list of tables. 188# file of a particular course.
161# schema = perl module to use for access to the table 189#$dbLayoutName = "sql";
162# driver = perl module to use for access to the data source 190$dbLayoutName = "gdbm";
163# source = location of data source (i.e. path, url, DBI spec)
164# params = extra information needed by the schema (optional)
165# note: schema and driver must have the same interface.
166%dbLayout = (
167 password => {
168 record => "WeBWorK::DB::Record::Password",
169 schema => "WeBWorK::DB::Schema::Auth1Hash",
170 driver => "WeBWorK::DB::Driver::GDBM",
171 source => "$courseDirs{auth_DATA}/$courseName\_password_DB",
172 },
173 permission => {
174 record => "WeBWorK::DB::Record::PermissionLevel",
175 schema => "WeBWorK::DB::Schema::Auth1Hash",
176 driver => "WeBWorK::DB::Driver::GDBM",
177 source => "$courseDirs{auth_DATA}/$courseName\_permissions_DB",
178 },
179 key => {
180 record => "WeBWorK::DB::Record::Key",
181 schema => "WeBWorK::DB::Schema::Auth1Hash",
182 driver => "WeBWorK::DB::Driver::GDBM",
183 source => "$courseDirs{auth_DATA}/keys",
184 },
185 user => {
186 record => "WeBWorK::DB::Record::User",
187 schema => "WeBWorK::DB::Schema::Classlist1Hash",
188 driver => "WeBWorK::DB::Driver::GDBM",
189 source => "$courseDirs{DATA}/$courseName\_classlist_DB",
190 },
191 set => {
192 record => "WeBWorK::DB::Record::Set",
193 schema => "WeBWorK::DB::Schema::Null",
194 driver => "WeBWorK::DB::Driver::Null",
195 source => undef,
196 },
197 set_user => {
198 record => "WeBWorK::DB::Record::UserSet",
199 schema => "WeBWorK::DB::Schema::WW1Hash",
200 driver => "WeBWorK::DB::Driver::GDBM",
201 source => "$courseDirs{DATA}/$courseName\_webwork_DB",
202 params => { psvnLength => 5 },
203 },
204 problem => {
205 record => "WeBWorK::DB::Record::Problem",
206 schema => "WeBWorK::DB::Schema::Null",
207 driver => "WeBWorK::DB::Driver::Null",
208 source => undef,
209 },
210 problem_user => {
211 record => "WeBWorK::DB::Record::UserProblem",
212 schema => "WeBWorK::DB::Schema::WW1Hash",
213 driver => "WeBWorK::DB::Driver::GDBM",
214 source => "$courseDirs{DATA}/$courseName\_webwork_DB",
215 params => { psvnLength => 5 },
216 },
217);
218 191
192*dbLayout = $dbLayouts{$dbLayoutName};
193
194################################################################################
195# Authorization system
196################################################################################
197
219# This lets you specify a minimum permission level needed to perform 198# This lets you specify a minimum permission level needed to perform certain
220# certain actions. In the current system, >=10 will allow a professor 199# actions. In the current system, >=10 will allow a professor to perform the
221# to perform the action, >=5 will allow a TA to, and >=0 will allow a 200# action, >=5 will allow a TA to, and >=0 will allow a student to perform an
222# student to perform an action (almost never what you want). 201# action (almost never what you want).
202my $ta = 5;
203my $professor = 10;
223%permissionLevels = ( 204%permissionLevels = (
224 "become_student" => 10, 205 become_student => $professor,
225 "access_instructor_tools" => $ta, 206 access_instructor_tools => $ta,
226 "create_and_delete_problem_sets" => $professor, 207 create_and_delete_problem_sets => $professor,
227 "modify_problem_sets" => $professor, 208 modify_problem_sets => $professor,
228 "assign_problem_sets" => $professor, 209 assign_problem_sets => $professor,
210 modify_student_data => $professor,
211 score_sets => $professor,
212 send_mail => $professor,
213 modify_classlist_files => $professor,
214 modify_set_def_files => $professor,
229); 215);
216
217################################################################################
218# Session options
219################################################################################
230 220
231# $sessionKeyTimeout defines seconds of inactivity before a key expires 221# $sessionKeyTimeout defines seconds of inactivity before a key expires
232$sessionKeyTimeout = 60*30; 222$sessionKeyTimeout = 60*30;
233 223
234# $sessionKeyLength defines the length (in characters) of the session key 224# $sessionKeyLength defines the length (in characters) of the session key
250################################################################################ 240################################################################################
251# PG translation options 241# PG translation options
252################################################################################ 242################################################################################
253 243
254%pg = ( 244%pg = (
245 # options for various renderers
246 renderers => {
247 "WeBWorK::PG::Remote" => {
248 proxy => "http://localhost:21000/RenderD"
249 }
250 },
251 # currently selected renderer
252 renderer => "WeBWorK::PG::Local",
253 #renderer => "WeBWorK::PG::Remote",
254 # directories used by PG
255 directories => {
256 # directories used only by PG
257 root => "$pgRoot",
258 lib => "$pgRoot/lib",
259 macros => "$pgRoot/macros",
260 },
255 options => { 261 options => {
256 # default translation options 262 # default translation options
257 displayMode => "images", 263 displayMode => "images",
258 showOldAnswers => 1, 264 showOldAnswers => 1,
259 showCorrectAnswers => 0, 265 showCorrectAnswers => 0,
260 showHints => 0, 266 showHints => 0,
261 showSolutions => 0, 267 showSolutions => 0,
262 catchWarnings => 1, 268 catchWarnings => 0, # there's a global warning catcher now
263 # default grader 269 # default grader
264 grader => "avg_problem_grader", 270 grader => "avg_problem_grader",
271 },
272 # this will be customized in the course.conf file
273 specialPGEnvironmentVars => {
274 PRINT_FILE_NAMES_FOR => [ qw(professor) ],
275 CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/",
276 CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/",
277 CAPA_Graphics_URL => "$courseURLs{html}/CAPA_Graphics/",
278 CAPA_GraphicsDirectory => "$courseDirs{html}/CAPA_Graphics/",
265 }, 279 },
266 # modules lists module names and the packages each contains 280 # modules lists module names and the packages each contains
267 modules => [ 281 modules => [
268 [qw(DynaLoader)], 282 [qw(DynaLoader)],
269 [qw(Exporter)], 283 [qw(Exporter)],
305 numAbsTolDefault => .001, 319 numAbsTolDefault => .001,
306 numFormatDefault => "", 320 numFormatDefault => "",
307 numRelPercentTolDefault => .1, 321 numRelPercentTolDefault => .1,
308 numZeroLevelDefault => 1E-14, 322 numZeroLevelDefault => 1E-14,
309 numZeroLevelTolDefault => 1E-12, 323 numZeroLevelTolDefault => 1E-12,
324 useBaseTenLog => 0,
325 defaultDisplayMatrixStyle => "[s]",
310 }, 326 },
311); 327);

Legend:
Removed from v.1017  
changed lines
  Added in v.1965

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9