[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 662 Revision 663
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.3 2002-11-26 21:49:51 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.
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# $courseName name of the course being used 14# $courseName name of the course being used
15 15
16################################################################################
17# WeBWorK settings
16################################################################################ 18################################################################################
17 19
18%webworkDirs = ( 20%webworkDirs = (
19 root => "$webworkRoot", 21 root => "$webworkRoot",
20 bin => "$webworkRoot/bin", 22 bin => "$webworkRoot/bin",
23 lib => "$webworkRoot/lib", 25 lib => "$webworkRoot/lib",
24 logs => "$webworkRoot/logs", 26 logs => "$webworkRoot/logs",
25 macros => "$webworkRoot/macros", 27 macros => "$webworkRoot/macros",
26 tmp => "$webworkRoot/tmp", 28 tmp => "$webworkRoot/tmp",
27); 29);
30
31%webworkFiles = (
32 environment => "$webworkDirs{conf}/global.conf",
33 hardcopySnippets => {
34 preamble => "$webworkDirs{conf}/hardcopyPreamble.tex",
35 setHeader => "$webworkDirs{conf}/hardcopySetHeader.pg",
36 problemDivider => "$webworkDirs{conf}/hardcopyProblemDivider.tex",
37 setFooter => "$webworkDirs{conf}/hardcopySetFooter.pg",
38 setDivider => "$webworkDirs{conf}/hardcopySetDivider.tex",
39 postamble => "$webworkDirs{conf}/hardcopyPostamble.tex",
40 },
41 screenSnippets => {
42 setHeader => "$webworkDirs{conf}/screenSetHeader.pg",
43 },
44 logs => {
45 timing => "$webworkDirs{logs}/timing.log",
46 transaction => "$courseDirs{logs}/transaction.log",
47 },
48);
49
50my $webworkURLRoot = "/webwork"; # *** # this should be detected!
51%webworkURLs = (
52 root => "$webworkURLRoot",
53 htdocs => "/webwork_files",
54 docs => "http://webhost.math.rochester.edu/webworkdocs/docs",
55);
56
57################################################################################
58# Default course-specific settings
59################################################################################
28 60
29my $courseRoot = "$webworkDirs{courses}/$courseName"; 61my $courseRoot = "$webworkDirs{courses}/$courseName";
30%courseDirs = ( 62%courseDirs = (
31 root => "$courseRoot", 63 root => "$courseRoot",
32 DATA => "$courseRoot/DATA", 64 DATA => "$courseRoot/DATA",
38 scoring => "$courseRoot/scoring", 70 scoring => "$courseRoot/scoring",
39 templates => "$courseRoot/templates", 71 templates => "$courseRoot/templates",
40 macros => "$courseRoot/templates/macros", 72 macros => "$courseRoot/templates/macros",
41); 73);
42 74
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);
61
62%courseFiles = ( 75%courseFiles = (
63 environment => "$courseDirs{root}/course.conf", 76 environment => "$courseDirs{root}/course.conf",
64); 77);
65 78
66my $webworkURLRoot = "/webwork";
67%webworkURLs = (
68 root => "$webworkURLRoot",
69 htdocs => "/webwork_files",
70 docs => "http://webhost.math.rochester.edu/webworkdocs/docs",
71);
72
73my $courseURLRoot = "$webworkURLs{htdocs}/$courseName"; 79my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName";
74%courseURLs = ( 80%courseURLs = (
75 base => "$courseURLRoot", 81 base => "$courseURLRoot", # *** # this should be "root"?
76 html => "$courseURLRoot", 82 html => "$courseURLRoot",
77 html_temp => "$courseURLRoot/tmp", 83 html_temp => "$courseURLRoot/tmp",
78); 84);
79 85
86################################################################################
87# Other site-specific options
88################################################################################
89
90%mail = (
91 smtpServer => "mail.math.rochester.edu",
92 smtpSender => "webwork\@math.rochester.edu",
93);
94
95%externalPrograms = (
96 mv => "/bin/mv", # *** is this used? probably not...
97 tth => "/usr/local/bin/tth",
98 pdflatex => "/usr/local/bin/pdflatex",
99 latex => "/usr/local/bin/latex",
100 dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent",
101 gif2eps => "$webworkDirs{bin}/gif2eps",
102 png2eps => "$webworkDirs{bin}/png2eps",
103 gif2png => "$webworkDirs{bin}/gif2png",
104);
105
106################################################################################
107# Frontend options
108################################################################################
109
110%templates = (
111 system => "$webworkDirs{conf}/barebones.template",
112);
113
114# $sessionKeyTimeout defines seconds of inactivity before a key expires
115$sessionKeyTimeout = 60*30;
116
117# Practice users are users who's names start with $practiceUser
118# (you can comment this out to remove practice user support)
119$practiceUserPrefix = "practice";
120
121# There is a practice user who can be logged in multiple times. He's
122# commented out by default, though, so you don't hurt yourself. It is
123# kindof a backdoor to the practice user system, since he doesn't have a
124# password. Come to think of it, why do we even have this?!
125#$debugPracticeUser = "practice666";
126
127################################################################################
128# Database and session
80################################################################################ 129################################################################################
81 130
82%dbInfo = ( 131%dbInfo = (
83 auth_type => "GDBM", 132 auth_type => "GDBM",
84 auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB", 133 auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB",
89 cldb_type => "GDBM", 138 cldb_type => "GDBM",
90 cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB", 139 cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB",
91 psvn_digits => 5, 140 psvn_digits => 5,
92); 141);
93 142
94%templates = (
95 system => "$webworkDirs{conf}/barebones.template",
96);
97
98# sessionKeyTimeout defines length of inactivity before a key expires (seconds)
99$sessionKeyTimeout = 60*30;
100
101# Practice users are users who's names start with $practiceUser
102# (you can comment this out to remove practice user support)
103$practiceUserPrefix = "practice";
104
105# There is a practice user who can be logged in multiple times. He's
106# 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
108# password. Come to think of it, why do we even have this?!
109#$debugPracticeUser = "practice666";
110
111# This lets you specify a minimum permission level needed to perform 143# This lets you specify a minimum permission level needed to perform
112# certain actions. In the current system, >=10 will allow a professor 144# 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 145# 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). 146# student to perform an action (almost never what you want).
115%permissionLevels = ( 147%permissionLevels = (
116 "become_student" => 10, 148 "become_student" => 10,
117); 149);
118 150
119# mail 151################################################################################
120%mail = (
121 smtpServer => "mail.math.rochester.edu",
122 smtpSender => "webwork\@math.rochester.edu",
123);
124
125# PG translation stuff 152# PG translation options
153################################################################################
154
126%pg = ( 155%pg = (
127 options => { 156 options => {
128 # default translation options: 157 # default translation options
129 displayMode => "images", 158 displayMode => "images",
130 showOldAnswers => 1, 159 showOldAnswers => 1,
131 showCorrectAnswers => 0, 160 showCorrectAnswers => 0,
132 showHints => 0, 161 showHints => 0,
133 showSolutions => 0, 162 showSolutions => 0,
163 catchWarnings => 1,
134 # default grader 164 # default grader
135 grader => "avg_problem_grader", 165 grader => "avg_problem_grader",
136 catchWarnings => 1,
137 }, 166 },
138 # modules lists module names and the packages each contains 167 # modules lists module names and the packages each contains
139 modules => [ 168 modules => [
140 [qw(DynaLoader)], 169 [qw(DynaLoader)],
141 [qw(Exporter)], 170 [qw(Exporter)],
179 numRelPercentTolDefault => .1, 208 numRelPercentTolDefault => .1,
180 numZeroLevelDefault => 1E-14, 209 numZeroLevelDefault => 1E-14,
181 numZeroLevelTolDefault => 1E-12, 210 numZeroLevelTolDefault => 1E-12,
182 }, 211 },
183); 212);
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.662  
changed lines
  Added in v.663

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9