[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 705 Revision 808
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.10 2003-01-21 20:24:03 sh002i Exp $ 4# $Id: global.conf.dist,v 1.17 2003-04-17 21:01:14 sh002i 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.
42 screenSnippets => { 42 screenSnippets => {
43 setHeader => "$webworkDirs{conf}/screenSetHeader.pg", 43 setHeader => "$webworkDirs{conf}/screenSetHeader.pg",
44 }, 44 },
45 logs => { 45 logs => {
46 timing => "$webworkDirs{logs}/timing.log", 46 timing => "$webworkDirs{logs}/timing.log",
47 transaction => "$courseDirs{logs}/transaction.log",
48 }, 47 },
49); 48);
50 49
51%webworkURLs = ( 50%webworkURLs = (
52 root => "$webworkURLRoot", 51 root => "$webworkURLRoot",
99 # allowedRecipients defines addresses that the PG system is allowed to 98 # allowedRecipients defines addresses that the PG system is allowed to
100 # send mail to. this prevents subtle PG exploits. This should be set 99 # send mail to. this prevents subtle PG exploits. This should be set
101 # in course.conf to the addresses of professors of each course. Sending 100 # in course.conf to the addresses of professors of each course. Sending
102 # mail from the PG system (i.e. questionaires, essay questions) will 101 # mail from the PG system (i.e. questionaires, essay questions) will
103 # fail if this is not set somewhere (either here or in course.conf). 102 # fail if this is not set somewhere (either here or in course.conf).
104 allowedRecipients => [ 103 #allowedRecipients => [
105 "yourname\@host.yourdomain.edu", 104 # "yourname\@host.yourdomain.edu",
106 ], 105 #],
107 # if defined, feedbackRecipients overrides the list of recipients for 106 # if defined, feedbackRecipients overrides the list of recipients for
108 # feedback email. It's appropriate to set this in the course.conf for 107 # feedback email. It's appropriate to set this in the course.conf for
109 # specific courses, but probably not in global.conf. if not defined, 108 # specific courses, but probably not in global.conf. if not defined,
110 # mail is sent to all professors and TAs for a given course 109 # mail is sent to all professors and TAs for a given course
111 #feedbackRecipients => [ 110 #feedbackRecipients => [
112 # "prof1\@host.yourdomain.edu", 111 # "prof1\@host.yourdomain.edu",
113 # "prof2\@host.yourdomain.edu", 112 # "prof2\@host.yourdomain.edu",
114 #], 113 #],
114 # feedbackVerbosity:
115 # 0: send only the feedback comment and context link
116 # 1: as in 0, plus user, set, problem, and PG data
117 # 2: as in 1, plus the problem environment (debugging data)
118 feedbackVerbosity => 1,
115); 119);
116 120
117%externalPrograms = ( 121%externalPrograms = (
122 mkdir => "/bin/mkdir",
118 tth => "/usr/local/bin/tth", 123 tth => "/usr/local/bin/tth",
119 pdflatex => "/usr/local/bin/pdflatex", 124 pdflatex => "/usr/local/bin/pdflatex",
120 latex => "/usr/local/bin/latex", 125 latex => "/usr/local/bin/latex",
121 dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent", 126 dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent",
122 gif2eps => "$webworkDirs{bin}/gif2eps", 127 gif2eps => "$webworkDirs{bin}/gif2eps",
130 135
131%templates = ( 136%templates = (
132 system => "$webworkDirs{conf}/barebones.template", 137 system => "$webworkDirs{conf}/barebones.template",
133); 138);
134 139
135# $sessionKeyTimeout defines seconds of inactivity before a key expires
136$sessionKeyTimeout = 60*30;
137
138# Practice users are users who's names start with $practiceUser
139# (you can comment this out to remove practice user support)
140$practiceUserPrefix = "practice";
141
142# There is a practice user who can be logged in multiple times. He's
143# commented out by default, though, so you don't hurt yourself. It is
144# kindof a backdoor to the practice user system, since he doesn't have a
145# password. Come to think of it, why do we even have this?!
146#$debugPracticeUser = "practice666";
147
148################################################################################ 140################################################################################
149# Database and session 141# Database and session
150################################################################################ 142################################################################################
151 143
144# dbInfo records some data for the "old" WW/Classlist/Auth.pm database system
145# {auth,wwdb,cldb}_type = database type: GDBM currently implemented
146# {auth_passwd,auth_perm,auth_keys,wwdb,cldb}_file = path to database file
152%dbInfo = ( 147%dbInfo = (
153 auth_type => "GDBM", 148 auth_type => "GDBM",
154 auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB", 149 auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB",
155 auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB", 150 auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB",
156 auth_keys_file => "$courseDirs{auth_DATA}/keys", 151 auth_keys_file => "$courseDirs{auth_DATA}/keys",
159 cldb_type => "GDBM", 154 cldb_type => "GDBM",
160 cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB", 155 cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB",
161 psvn_digits => 5, 156 psvn_digits => 5,
162); 157);
163 158
159# dbLayout records the schema and source for each table in the "new" DB.pm
160# database system. consult DB.pm for the authoritative list of tables.
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
164# This lets you specify a minimum permission level needed to perform 219# This lets you specify a minimum permission level needed to perform
165# certain actions. In the current system, >=10 will allow a professor 220# certain actions. In the current system, >=10 will allow a professor
166# to perform the action, >=5 will allow a TA to, and >=0 will allow a 221# to perform the action, >=5 will allow a TA to, and >=0 will allow a
167# student to perform an action (almost never what you want). 222# student to perform an action (almost never what you want).
168%permissionLevels = ( 223%permissionLevels = (
169 "become_student" => 10, 224 "become_student" => 10,
170); 225);
226
227# $sessionKeyTimeout defines seconds of inactivity before a key expires
228$sessionKeyTimeout = 60*30;
229
230# Practice users are users who's names start with $practiceUser
231# (you can comment this out to remove practice user support)
232$practiceUserPrefix = "practice";
233
234# There is a practice user who can be logged in multiple times. He's
235# commented out by default, though, so you don't hurt yourself. It is
236# kindof a backdoor to the practice user system, since he doesn't have a
237# password. Come to think of it, why do we even have this?!
238#$debugPracticeUser = "practice666";
171 239
172################################################################################ 240################################################################################
173# PG translation options 241# PG translation options
174################################################################################ 242################################################################################
175 243

Legend:
Removed from v.705  
changed lines
  Added in v.808

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9