[system] / trunk / webwork2 / conf / global.conf.dist Repository:
ViewVC logotype

Diff of /trunk/webwork2/conf/global.conf.dist

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

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

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9