[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 811 Revision 1248
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.18 2003-04-23 06:35:06 sh002i Exp $ 4# $Id: global.conf.dist,v 1.36 2003-06-21 02:34:10 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 14# $webworkURL base URL handled by Apache::WeBWorK
15# $pgRoot directory that contains the PG distribution
15# $courseName name of the course being used 16# $courseName name of the course being used
16 17
17################################################################################ 18################################################################################
18# WeBWorK settings 19# WeBWorK settings
19################################################################################ 20################################################################################
23 bin => "$webworkRoot/bin", 24 bin => "$webworkRoot/bin",
24 conf => "$webworkRoot/conf", 25 conf => "$webworkRoot/conf",
25 courses => "$webworkRoot/courses", 26 courses => "$webworkRoot/courses",
26 lib => "$webworkRoot/lib", 27 lib => "$webworkRoot/lib",
27 logs => "$webworkRoot/logs", 28 logs => "$webworkRoot/logs",
28 macros => "$webworkRoot/macros",
29 tmp => "$webworkRoot/tmp", 29 tmp => "$webworkRoot/tmp",
30); 30);
31 31
32%webworkFiles = ( 32%webworkFiles = (
33 environment => "$webworkDirs{conf}/global.conf", 33 environment => "$webworkDirs{conf}/global.conf",
34 hardcopySnippets => { 34 hardcopySnippets => {
35 preamble => "$webworkDirs{conf}/hardcopyPreamble.tex", 35 preamble => "$webworkDirs{conf}/snippets/hardcopyPreamble.tex",
36 setHeader => "$webworkDirs{conf}/hardcopySetHeader.pg", 36 setHeader => "$webworkDirs{conf}/snippets/hardcopySetHeader.pg",
37 problemDivider => "$webworkDirs{conf}/hardcopyProblemDivider.tex", 37 problemDivider => "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex",
38 setFooter => "$webworkDirs{conf}/hardcopySetFooter.pg", 38 setFooter => "$webworkDirs{conf}/snippets/hardcopySetFooter.pg",
39 setDivider => "$webworkDirs{conf}/hardcopySetDivider.tex", 39 setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex",
40 userDivider => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex",
40 postamble => "$webworkDirs{conf}/hardcopyPostamble.tex", 41 postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex",
41 }, 42 },
42 screenSnippets => { 43 screenSnippets => {
43 setHeader => "$webworkDirs{conf}/screenSetHeader.pg", 44 setHeader => "$webworkDirs{conf}/snippets/screenSetHeader.pg",
44 }, 45 },
45 logs => { 46 logs => {
46 timing => "$webworkDirs{logs}/timing.log", 47 timing => "$webworkDirs{logs}/timing.log",
47 }, 48 },
48); 49);
49 50
50%webworkURLs = ( 51%webworkURLs = (
51 root => "$webworkURLRoot", 52 root => "$webworkURLRoot",
52 home => "http://host.yourdomaon.edu/webwork-info", 53 home => "/webwork2_files/index.html",
53 htdocs => "/webwork_files", 54 htdocs => "/webwork2_files",
54 docs => "http://webhost.math.rochester.edu/webworkdocs/docs", 55 docs => "http://webhost.math.rochester.edu/webworkdocs/docs",
55 oldProf => "/webwork-old/profLogin.pl", 56 oldProf => "/webwork-old/profLogin.pl",
56); 57);
57 58
58################################################################################ 59################################################################################
77 environment => "$courseDirs{root}/course.conf", 78 environment => "$courseDirs{root}/course.conf",
78 motd => "$courseDirs{root}/motd.txt", 79 motd => "$courseDirs{root}/motd.txt",
79); 80);
80 81
81# quick hack to fix transaction logging. blah. 82# quick hack to fix transaction logging. blah.
82$webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; 83$webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log";
84$webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log";
83 85
84my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName"; 86my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName";
85%courseURLs = ( 87%courseURLs = (
86 root => "$courseURLRoot", 88 root => "$courseURLRoot",
87 html => "$courseURLRoot", 89 html => "$courseURLRoot",
121%externalPrograms = ( 123%externalPrograms = (
122 mkdir => "/bin/mkdir", 124 mkdir => "/bin/mkdir",
123 tth => "/usr/local/bin/tth", 125 tth => "/usr/local/bin/tth",
124 pdflatex => "/usr/local/bin/pdflatex", 126 pdflatex => "/usr/local/bin/pdflatex",
125 latex => "/usr/local/bin/latex", 127 latex => "/usr/local/bin/latex",
126 dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent", 128 #dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent",
129 dvipng => "/usr/local/bin/dvipng",
127 gif2eps => "$webworkDirs{bin}/gif2eps", 130 gif2eps => "$webworkDirs{bin}/gif2eps",
128 png2eps => "$webworkDirs{bin}/png2eps", 131 png2eps => "$webworkDirs{bin}/png2eps",
129 gif2png => "$webworkDirs{bin}/gif2png", 132 gif2png => "$webworkDirs{bin}/gif2png",
130); 133);
131 134
132################################################################################ 135################################################################################
133# Frontend options 136# Frontend options
134################################################################################ 137################################################################################
135 138
136%templates = ( 139%templates = (
137 system => "$webworkDirs{conf}/barebones.template", 140 system => "$webworkDirs{conf}/templates/ur.template",
138); 141);
139 142
140################################################################################ 143################################################################################
141# Database and session 144# Database options
142################################################################################ 145################################################################################
143 146
144# dbInfo records some data for the "old" WW/Classlist/Auth.pm database system 147# Several database layouts are defined in separate environment files. Select the
145# {auth,wwdb,cldb}_type = database type: GDBM currently implemented 148# one which should be used by all courses by default, and include it. This can
146# {auth_passwd,auth_perm,auth_keys,wwdb,cldb}_file = path to database file 149# be overridden by including a difference environment file in the course.conf of
147%dbInfo = ( 150# a particular course.
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 151
159# dbLayout records the schema and source for each table in the "new" DB.pm 152# Include sql.conf to specify a database layout for use with an SQL server.
160# database system. consult DB.pm for the authoritative list of tables. 153#include "conf/sql.conf";
161# schema = perl module to use for access to the table
162# driver = perl module to use for access to the data source
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 154
155# Include gdbm.conf to specify a database layout for WeBWorK 1.x compatible GDBM
156# databases. Use this layout if you wish to share courses between WeBWorK 1.x
157# and WeBWorK 2.
158include "conf/gdbm.conf";
159
160# Please read the documentation in the file that you chose to include, as there
161# are layout-specific options that must be configured.
162
163################################################################################
164# Authorization system
165################################################################################
166
219# This lets you specify a minimum permission level needed to perform 167# This lets you specify a minimum permission level needed to perform certain
220# certain actions. In the current system, >=10 will allow a professor 168# 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 169# 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). 170# action (almost never what you want).
171my $ta = 5;
172my $professor = 10;
223%permissionLevels = ( 173%permissionLevels = (
224 "become_student" => 10, 174 become_student => $professor,
175 access_instructor_tools => $ta,
176 create_and_delete_problem_sets => $professor,
177 modify_problem_sets => $professor,
178 assign_problem_sets => $professor,
179 modify_student_data => $professor,
225); 180);
181
182################################################################################
183# Session options
184################################################################################
226 185
227# $sessionKeyTimeout defines seconds of inactivity before a key expires 186# $sessionKeyTimeout defines seconds of inactivity before a key expires
228$sessionKeyTimeout = 60*30; 187$sessionKeyTimeout = 60*30;
229 188
230# $sessionKeyLength defines the length (in characters) of the session key 189# $sessionKeyLength defines the length (in characters) of the session key
246################################################################################ 205################################################################################
247# PG translation options 206# PG translation options
248################################################################################ 207################################################################################
249 208
250%pg = ( 209%pg = (
210 # options for various renderers
211 renderers => {
212 "WeBWorK::PG::Remote" => {
213 uri => "http://localhost:8089/RPC2"
214 }
215 },
216 # currently selected renderer
217 renderer => "WeBWorK::PG::Local",
218 # directories used by PG
219 directories => {
220 lib => "$pgRoot/lib",
221 macros => "$pgRoot/macros",
222 },
251 options => { 223 options => {
252 # default translation options 224 # default translation options
253 displayMode => "images", 225 displayMode => "images",
254 showOldAnswers => 1, 226 showOldAnswers => 1,
255 showCorrectAnswers => 0, 227 showCorrectAnswers => 0,
256 showHints => 0, 228 showHints => 0,
257 showSolutions => 0, 229 showSolutions => 0,
258 catchWarnings => 1, 230 catchWarnings => 0, # there's a global warning catcher now
259 # default grader 231 # default grader
260 grader => "avg_problem_grader", 232 grader => "avg_problem_grader",
233 },
234 # this will be customized in the course.conf file
235 specialPGEnvironmentVars => {
236 PRINT_FILE_NAMES_FOR => [ qw(gage apizer voloshin lr003k professor) ],
237 CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/",
238 CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/",
239 CAPA_Graphics_URL => "$courseDirs{html}/CAPA_Graphics/",
240 CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/",
261 }, 241 },
262 # modules lists module names and the packages each contains 242 # modules lists module names and the packages each contains
263 modules => [ 243 modules => [
264 [qw(DynaLoader)], 244 [qw(DynaLoader)],
265 [qw(Exporter)], 245 [qw(Exporter)],

Legend:
Removed from v.811  
changed lines
  Added in v.1248

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9