[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 1132 Revision 1897
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.31 2003-06-11 20:40:56 sh002i Exp $ 4# Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
5# $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.52 2004/02/27 19:01:40 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.
18################################################################################ 29################################################################################
19# WeBWorK settings 30# WeBWorK settings
20################################################################################ 31################################################################################
21 32
22%webworkDirs = ( 33%webworkDirs = (
23 root => "$webworkRoot", 34 root => "$webworkRoot",
35 DATA => "$webworkRoot/DATA",
36 uploadCache => "$webworkRoot/DATA/uploads",
24 bin => "$webworkRoot/bin", 37 bin => "$webworkRoot/bin",
25 conf => "$webworkRoot/conf", 38 conf => "$webworkRoot/conf",
26 courses => "$webworkRoot/courses", 39 courses => "$webworkRoot/courses",
40 htdocs => "$webworkRoot/htdocs",
41 htdocs_temp => "$webworkRoot/htdocs/tmp",
42 equationCache => "$webworkRoot/htdocs/tmp/equations",
27 lib => "$webworkRoot/lib", 43 lib => "$webworkRoot/lib",
28 logs => "$webworkRoot/logs", 44 logs => "$webworkRoot/logs",
29 macros => "$pgRoot/macros", 45 macros => "$pgRoot/macros",
30 tmp => "$webworkRoot/tmp", 46 tmp => "$webworkRoot/tmp",
31); 47);
32 48
33%webworkFiles = ( 49%webworkFiles = (
34 environment => "$webworkDirs{conf}/global.conf", 50 environment => "$webworkDirs{conf}/global.conf",
35 hardcopySnippets => { 51 hardcopySnippets => {
40 setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex", 56 setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex",
41 userDivider => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex", 57 userDivider => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex",
42 postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex", 58 postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex",
43 }, 59 },
44 screenSnippets => { 60 screenSnippets => {
45 setHeader => "$webworkDirs{conf}/snippets/screenSetHeader.pg", 61 setHeader => "$webworkDirs{conf}/snippets/setHeader.pg",
46 }, 62 },
47 logs => { 63 logs => {
48 timing => "$webworkDirs{logs}/timing.log", 64 timing => "$webworkDirs{logs}/timing.log",
49 }, 65 },
66 equationCacheDB => "$webworkDirs{DATA}/equationcache",
50); 67);
51 68
52%webworkURLs = ( 69%webworkURLs = (
53 root => "$webworkURLRoot", 70 root => "$webworkURLRoot",
54 home => "/webwork2_files/index.html", 71 home => "/webwork2_files/index.html",
55 htdocs => "/webwork2_files", 72 htdocs => "/webwork2_files",
73 htdocs_temp => "/webwork2_files/tmp",
74 equationCache => "/webwork2_files/tmp/equations",
56 docs => "http://webhost.math.rochester.edu/webworkdocs/docs", 75 docs => "http://webhost.math.rochester.edu/webworkdocs/docs",
57 oldProf => "/webwork-old/profLogin.pl", 76 oldProf => "/webwork1/profLogin.pl",
58); 77);
59 78
60################################################################################ 79################################################################################
61# Default course-specific settings 80# Default course-specific settings
62################################################################################ 81################################################################################
71 html_temp => "$courseRoot/html/tmp", 90 html_temp => "$courseRoot/html/tmp",
72 logs => "$courseRoot/logs", 91 logs => "$courseRoot/logs",
73 scoring => "$courseRoot/scoring", 92 scoring => "$courseRoot/scoring",
74 templates => "$courseRoot/templates", 93 templates => "$courseRoot/templates",
75 macros => "$courseRoot/templates/macros", 94 macros => "$courseRoot/templates/macros",
95 email => "$courseRoot/templates/email",
76); 96);
77 97
78%courseFiles = ( 98%courseFiles = (
79 environment => "$courseDirs{root}/course.conf", 99 environment => "$courseDirs{root}/course.conf",
80 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
81); 106);
82 107
83# quick hack to fix transaction logging. blah. 108# quick hack to fix transaction logging. blah.
84$webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; 109$webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log";
85$webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log"; 110$webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log";
86 111
87my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName"; 112my $courseURLRoot = "/webwork2_courses/$courseName";
88%courseURLs = ( 113%courseURLs = (
89 root => "$courseURLRoot", 114 root => "$courseURLRoot",
90 html => "$courseURLRoot", 115 html => "$courseURLRoot",
91 html_temp => "$courseURLRoot/tmp", 116 html_temp => "$courseURLRoot/tmp",
92); 117);
96################################################################################ 121################################################################################
97 122
98%mail = ( 123%mail = (
99 smtpServer => "mail.math.rochester.edu", 124 smtpServer => "mail.math.rochester.edu",
100 smtpSender => "webwork\@math.rochester.edu", 125 smtpSender => "webwork\@math.rochester.edu",
126
101 # allowedRecipients defines addresses that the PG system is allowed to 127 # allowedRecipients defines addresses that the PG system is allowed to
102 # 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
103 # 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
104 # mail from the PG system (i.e. questionaires, essay questions) will 130 # mail from the PG system (i.e. questionaires, essay questions) will
105 # 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).
106 #allowedRecipients => [ 132 #allowedRecipients => [
107 # "yourname\@host.yourdomain.edu", 133 # 'prof1@host.yourdomain.edu',
134 # 'prof2@host.yourdomain.edu',
108 #], 135 #],
136
109 # if defined, feedbackRecipients overrides the list of recipients for 137 # if defined, feedbackRecipients overrides the list of recipients for
110 # 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
111 # specific courses, but probably not in global.conf. if not defined, 139 # specific courses, but probably not in global.conf. if not defined,
112 # 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
113 #feedbackRecipients => [ 141 #feedbackRecipients => [
114 # "prof1\@host.yourdomain.edu", 142 # 'prof1@host.yourdomain.edu',
115 # "prof2\@host.yourdomain.edu", 143 # 'prof2@host.yourdomain.edu',
116 #], 144 #],
145
117 # feedbackVerbosity: 146 # feedbackVerbosity:
118 # 0: send only the feedback comment and context link 147 # 0: send only the feedback comment and context link
119 # 1: as in 0, plus user, set, problem, and PG data 148 # 1: as in 0, plus user, set, problem, and PG data
120 # 2: as in 1, plus the problem environment (debugging data) 149 # 2: as in 1, plus the problem environment (debugging data)
121 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,
122); 157);
123 158
124%externalPrograms = ( 159%externalPrograms = (
125 mkdir => "/bin/mkdir", 160 mkdir => "/bin/mkdir",
126 tth => "/usr/local/bin/tth", 161 tth => "/usr/local/bin/tth",
127 pdflatex => "/usr/local/bin/pdflatex", 162 pdflatex => "/usr/local/bin/pdflatex",
128 latex => "/usr/local/bin/latex", 163 latex => "/usr/local/bin/latex",
129 dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent", 164 dvipng => "/usr/local/bin/dvipng",
130 gif2eps => "$webworkDirs{bin}/gif2eps", 165 gif2eps => "$webworkDirs{bin}/gif2eps",
131 png2eps => "$webworkDirs{bin}/png2eps", 166 png2eps => "$webworkDirs{bin}/png2eps",
132 gif2png => "$webworkDirs{bin}/gif2png", 167 gif2png => "$webworkDirs{bin}/gif2png",
133); 168);
134 169
142 177
143################################################################################ 178################################################################################
144# Database options 179# Database options
145################################################################################ 180################################################################################
146 181
147# Several database layouts are defined in separate environment files. Select the 182# Several database are defined in the file conf/database.conf and stored in the
148# one which should be used by all courses by default, and include it. This can 183# hash %dbLayouts.
149# be overridden by including a difference environment file in the course.conf of
150# a particular course.
151
152# Include sql.conf to specify a database layout for use with an SQL server.
153#include "conf/sql.conf";
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"; 184include "conf/database.conf";
159 185
160# Please read the documentation in the file that you chose to include, as there 186# Select the default database layout. This can be overridden in the course.conf
161# are layout-specific options that must be configured. 187# file of a particular course.
188#$dbLayoutName = "sql";
189$dbLayoutName = "gdbm";
190
191*dbLayout = $dbLayouts{$dbLayoutName};
162 192
163################################################################################ 193################################################################################
164# Authorization system 194# Authorization system
165################################################################################ 195################################################################################
166 196
174 become_student => $professor, 204 become_student => $professor,
175 access_instructor_tools => $ta, 205 access_instructor_tools => $ta,
176 create_and_delete_problem_sets => $professor, 206 create_and_delete_problem_sets => $professor,
177 modify_problem_sets => $professor, 207 modify_problem_sets => $professor,
178 assign_problem_sets => $professor, 208 assign_problem_sets => $professor,
209 modify_student_data => $professor,
210 score_sets => $professor,
211 send_mail => $professor,
212 modify_classlist_files => $professor,
213 modify_set_def_files => $professor,
179); 214);
180 215
181################################################################################ 216################################################################################
182# Session options 217# Session options
183################################################################################ 218################################################################################
204################################################################################ 239################################################################################
205# PG translation options 240# PG translation options
206################################################################################ 241################################################################################
207 242
208%pg = ( 243%pg = (
244 # options for various renderers
245 renderers => {
246 "WeBWorK::PG::Remote" => {
247 proxy => "http://localhost:21000/RenderD"
248 }
249 },
250 # currently selected renderer
251 renderer => "WeBWorK::PG::Local",
252 #renderer => "WeBWorK::PG::Remote",
253 # directories used by PG
209 directories => { 254 directories => {
210 # directories used only by PG 255 # directories used only by PG
211 lib => "$pgRoot/lib", 256 lib => "$pgRoot/lib",
212 macros => "$pgRoot/macros", 257 macros => "$pgRoot/macros",
213 }, # (not used yet) 258 },
214 options => { 259 options => {
215 # default translation options 260 # default translation options
216 displayMode => "images", 261 displayMode => "images",
217 showOldAnswers => 1, 262 showOldAnswers => 1,
218 showCorrectAnswers => 0, 263 showCorrectAnswers => 0,
222 # default grader 267 # default grader
223 grader => "avg_problem_grader", 268 grader => "avg_problem_grader",
224 }, 269 },
225 # this will be customized in the course.conf file 270 # this will be customized in the course.conf file
226 specialPGEnvironmentVars => { 271 specialPGEnvironmentVars => {
227 PRINT_FILE_NAMES_FOR => ['gage','apizer','voloshin','lr003k','professor'], 272 PRINT_FILE_NAMES_FOR => [ qw(professor) ],
228 CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/", 273 CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/",
229 CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/", 274 CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/",
230 CAPA_Graphics_URL => "$courseDirs{html}/CAPA_Graphics/", 275 CAPA_Graphics_URL => "$courseURLs{html}/CAPA_Graphics/",
231 CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/", 276 CAPA_GraphicsDirectory => "$courseDirs{html}/CAPA_Graphics/",
232 }, 277 },
233 # modules lists module names and the packages each contains 278 # modules lists module names and the packages each contains
234 modules => [ 279 modules => [
235 [qw(DynaLoader)], 280 [qw(DynaLoader)],
236 [qw(Exporter)], 281 [qw(Exporter)],

Legend:
Removed from v.1132  
changed lines
  Added in v.1897

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9