| 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.14 2003-03-06 19:12:37 sh002i Exp $ |
4 | # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ |
|
|
5 | # $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.70 2004/05/24 18:25:07 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. |
| 10 | # If you wish to set a variable here but omit it from the course environment, |
21 | # 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: |
22 | # use the "my" keyword. The following variables are available to this file: |
| 12 | # |
23 | # |
| 13 | # $webworkRoot directory that contains the WeBWorK distribution |
24 | # $webworkRoot directory that contains the WeBWorK distribution |
| 14 | # $webworkURL base URL handled by Apache::WeBWorK |
25 | # $webworkURL base URL handled by Apache::WeBWorK |
|
|
26 | # $pgRoot directory that contains the PG distribution |
| 15 | # $courseName name of the course being used |
27 | # $courseName name of the course being used |
| 16 | |
28 | |
| 17 | ################################################################################ |
29 | ################################################################################ |
| 18 | # WeBWorK settings |
30 | # WeBWorK settings |
| 19 | ################################################################################ |
31 | ################################################################################ |
| 20 | |
32 | |
| 21 | %webworkDirs = ( |
33 | %webworkDirs = ( |
| 22 | root => "$webworkRoot", |
34 | root => "$webworkRoot", |
|
|
35 | DATA => "$webworkRoot/DATA", |
|
|
36 | uploadCache => "$webworkRoot/DATA/uploads", |
| 23 | bin => "$webworkRoot/bin", |
37 | bin => "$webworkRoot/bin", |
| 24 | conf => "$webworkRoot/conf", |
38 | conf => "$webworkRoot/conf", |
| 25 | courses => "$webworkRoot/courses", |
39 | courses => "$webworkRoot/courses", |
|
|
40 | htdocs => "$webworkRoot/htdocs", |
|
|
41 | htdocs_temp => "$webworkRoot/htdocs/tmp", |
|
|
42 | equationCache => "$webworkRoot/htdocs/tmp/equations", |
| 26 | lib => "$webworkRoot/lib", |
43 | lib => "$webworkRoot/lib", |
| 27 | logs => "$webworkRoot/logs", |
44 | logs => "$webworkRoot/logs", |
| 28 | macros => "$webworkRoot/macros", |
45 | macros => "$pgRoot/macros", |
| 29 | tmp => "$webworkRoot/tmp", |
46 | tmp => "$webworkRoot/tmp", |
| 30 | ); |
47 | ); |
| 31 | |
48 | |
| 32 | %webworkFiles = ( |
49 | %webworkFiles = ( |
| 33 | environment => "$webworkDirs{conf}/global.conf", |
50 | environment => "$webworkDirs{conf}/global.conf", |
| 34 | hardcopySnippets => { |
51 | hardcopySnippets => { |
| 35 | preamble => "$webworkDirs{conf}/hardcopyPreamble.tex", |
52 | preamble => "$webworkDirs{conf}/snippets/hardcopyPreamble.tex", |
| 36 | setHeader => "$webworkDirs{conf}/hardcopySetHeader.pg", |
53 | setHeader => "$webworkDirs{conf}/snippets/setHeader.pg", # hardcopySetHeader.pg", |
| 37 | problemDivider => "$webworkDirs{conf}/hardcopyProblemDivider.tex", |
54 | problemDivider => "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex", |
| 38 | setFooter => "$webworkDirs{conf}/hardcopySetFooter.pg", |
55 | setFooter => "$webworkDirs{conf}/snippets/hardcopySetFooter.pg", |
| 39 | setDivider => "$webworkDirs{conf}/hardcopySetDivider.tex", |
56 | setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex", |
|
|
57 | userDivider => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex", |
| 40 | postamble => "$webworkDirs{conf}/hardcopyPostamble.tex", |
58 | postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex", |
| 41 | }, |
59 | }, |
| 42 | screenSnippets => { |
60 | screenSnippets => { |
| 43 | setHeader => "$webworkDirs{conf}/screenSetHeader.pg", |
61 | setHeader => "$webworkDirs{conf}/snippets/setHeader.pg", # screenSetHeader.pg", |
| 44 | }, |
62 | }, |
| 45 | logs => { |
63 | logs => { |
| 46 | timing => "$webworkDirs{logs}/timing.log", |
64 | timing => "$webworkDirs{logs}/timing.log", |
| 47 | transaction => "$courseDirs{logs}/transaction.log", |
|
|
| 48 | }, |
65 | }, |
|
|
66 | equationCacheDB => "$webworkDirs{DATA}/equationcache", |
| 49 | ); |
67 | ); |
| 50 | |
68 | |
| 51 | %webworkURLs = ( |
69 | %webworkURLs = ( |
| 52 | root => "$webworkURLRoot", |
70 | root => "$webworkURLRoot", |
| 53 | home => "http://host.yourdomaon.edu/webwork-info", |
71 | home => "/webwork2_files/index.html", |
| 54 | htdocs => "/webwork_files", |
72 | htdocs => "/webwork2_files", |
|
|
73 | htdocs_temp => "/webwork2_files/tmp", |
|
|
74 | equationCache => "/webwork2_files/tmp/equations", |
| 55 | docs => "http://webhost.math.rochester.edu/webworkdocs/docs", |
75 | docs => "http://webhost.math.rochester.edu/webworkdocs/docs", |
|
|
76 | local_help => "/webwork2_files/helpFiles", |
| 56 | oldProf => "/webwork-old/profLogin.pl", |
77 | oldProf => "/webwork1/profLogin.pl", |
|
|
78 | jsMath => "/webwork2_files/jsMath/jsMath.js", |
|
|
79 | asciimath => "/webwork2_files/ASCIIMathML/ASCIIMathML.js", |
| 57 | ); |
80 | ); |
| 58 | |
81 | |
| 59 | ################################################################################ |
82 | ################################################################################ |
| 60 | # Default course-specific settings |
83 | # Default course-specific settings |
| 61 | ################################################################################ |
84 | ################################################################################ |
| … | |
… | |
| 70 | html_temp => "$courseRoot/html/tmp", |
93 | html_temp => "$courseRoot/html/tmp", |
| 71 | logs => "$courseRoot/logs", |
94 | logs => "$courseRoot/logs", |
| 72 | scoring => "$courseRoot/scoring", |
95 | scoring => "$courseRoot/scoring", |
| 73 | templates => "$courseRoot/templates", |
96 | templates => "$courseRoot/templates", |
| 74 | macros => "$courseRoot/templates/macros", |
97 | macros => "$courseRoot/templates/macros", |
|
|
98 | email => "$courseRoot/templates/email", |
| 75 | ); |
99 | ); |
| 76 | |
100 | |
| 77 | %courseFiles = ( |
101 | %courseFiles = ( |
| 78 | environment => "$courseDirs{root}/course.conf", |
102 | environment => "$courseDirs{root}/course.conf", |
| 79 | motd => "$courseDirs{root}/motd.txt", |
103 | motd => "$courseDirs{templates}/motd.txt", |
|
|
104 | logs => { |
|
|
105 | answer_log => "$courseDirs{logs}/answer_log", |
|
|
106 | }, |
|
|
107 | course_info => "course_info.txt", # path relative to templates directory |
|
|
108 | login_info => "login_info.txt", # path relative to templates directory |
| 80 | ); |
109 | ); |
| 81 | |
110 | |
| 82 | # quick hack to fix transaction logging. blah. |
111 | # quick hack to fix transaction logging. blah. |
| 83 | $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; |
112 | $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; |
|
|
113 | $webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log"; |
| 84 | |
114 | |
| 85 | my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName"; |
115 | my $courseURLRoot = "/webwork2_course_files/$courseName"; |
| 86 | %courseURLs = ( |
116 | %courseURLs = ( |
| 87 | root => "$courseURLRoot", |
117 | root => "$courseURLRoot", |
| 88 | html => "$courseURLRoot", |
118 | html => "$courseURLRoot", |
| 89 | html_temp => "$courseURLRoot/tmp", |
119 | html_temp => "$courseURLRoot/tmp", |
| 90 | ); |
120 | ); |
| … | |
… | |
| 94 | ################################################################################ |
124 | ################################################################################ |
| 95 | |
125 | |
| 96 | %mail = ( |
126 | %mail = ( |
| 97 | smtpServer => "mail.math.rochester.edu", |
127 | smtpServer => "mail.math.rochester.edu", |
| 98 | smtpSender => "webwork\@math.rochester.edu", |
128 | smtpSender => "webwork\@math.rochester.edu", |
|
|
129 | |
| 99 | # allowedRecipients defines addresses that the PG system is allowed to |
130 | # allowedRecipients defines addresses that the PG system is allowed to |
| 100 | # send mail to. this prevents subtle PG exploits. This should be set |
131 | # 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 |
132 | # in course.conf to the addresses of professors of each course. Sending |
| 102 | # mail from the PG system (i.e. questionaires, essay questions) will |
133 | # 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). |
134 | # fail if this is not set somewhere (either here or in course.conf). |
| 104 | #allowedRecipients => [ |
135 | #allowedRecipients => [ |
| 105 | # "yourname\@host.yourdomain.edu", |
136 | # 'prof1@host.yourdomain.edu', |
|
|
137 | # 'prof2@host.yourdomain.edu', |
| 106 | #], |
138 | #], |
|
|
139 | |
| 107 | # if defined, feedbackRecipients overrides the list of recipients for |
140 | # if defined, feedbackRecipients overrides the list of recipients for |
| 108 | # feedback email. It's appropriate to set this in the course.conf for |
141 | # 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, |
142 | # specific courses, but probably not in global.conf. if not defined, |
| 110 | # mail is sent to all professors and TAs for a given course |
143 | # mail is sent to all professors and TAs for a given course |
| 111 | #feedbackRecipients => [ |
144 | #feedbackRecipients => [ |
| 112 | # "prof1\@host.yourdomain.edu", |
145 | # 'prof1@host.yourdomain.edu', |
| 113 | # "prof2\@host.yourdomain.edu", |
146 | # 'prof2@host.yourdomain.edu', |
| 114 | #], |
147 | #], |
|
|
148 | |
| 115 | # feedbackVerbosity: |
149 | # feedbackVerbosity: |
| 116 | # 0: send only the feedback comment and context link |
150 | # 0: send only the feedback comment and context link |
| 117 | # 1: as in 0, plus user, set, problem, and PG data |
151 | # 1: as in 0, plus user, set, problem, and PG data |
| 118 | # 2: as in 1, plus the problem environment (debugging data) |
152 | # 2: as in 1, plus the problem environment (debugging data) |
| 119 | feedbackVerbosity => 1, |
153 | feedbackVerbosity => 1, |
|
|
154 | |
|
|
155 | # defines the size of the Mail Merge editor window |
|
|
156 | # FIXME: should this be here? it's UI, not mail |
|
|
157 | # FIXME: replace this with the auto-size method that TWiki uses |
|
|
158 | editor_window_rows => 15, |
|
|
159 | editor_window_columns => 100, |
| 120 | ); |
160 | ); |
| 121 | |
161 | |
| 122 | %externalPrograms = ( |
162 | %externalPrograms = ( |
| 123 | mkdir => "/bin/mkdir", |
163 | mkdir => "/bin/mkdir", |
| 124 | tth => "/usr/local/bin/tth", |
164 | tth => "/usr/local/bin/tth", |
| 125 | pdflatex => "/usr/local/bin/pdflatex", |
165 | pdflatex => "/usr/local/bin/pdflatex", |
| 126 | latex => "/usr/local/bin/latex", |
166 | latex => "/usr/local/bin/latex", |
| 127 | dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent", |
167 | dvipng => "/usr/local/bin/dvipng", |
| 128 | gif2eps => "$webworkDirs{bin}/gif2eps", |
168 | gif2eps => "$webworkDirs{bin}/gif2eps", |
| 129 | png2eps => "$webworkDirs{bin}/png2eps", |
169 | png2eps => "$webworkDirs{bin}/png2eps", |
| 130 | gif2png => "$webworkDirs{bin}/gif2png", |
170 | gif2png => "$webworkDirs{bin}/gif2png", |
|
|
171 | mysql => "/usr/local/bin/mysql", |
|
|
172 | ); |
|
|
173 | |
|
|
174 | %siteDefaults = ( |
|
|
175 | status => { |
|
|
176 | audit => "Audit", |
|
|
177 | A => "Audit", |
|
|
178 | drop => "Drop", |
|
|
179 | D => "Drop", |
|
|
180 | withdraw => "Drop", |
|
|
181 | current => "Enrolled", |
|
|
182 | C => "Enrolled", |
|
|
183 | enrolled => "Enrolled", |
|
|
184 | }, |
| 131 | ); |
185 | ); |
| 132 | |
186 | |
| 133 | ################################################################################ |
187 | ################################################################################ |
| 134 | # Frontend options |
188 | # Frontend options |
| 135 | ################################################################################ |
189 | ################################################################################ |
| 136 | |
190 | |
| 137 | %templates = ( |
191 | %templates = ( |
| 138 | system => "$webworkDirs{conf}/barebones.template", |
192 | system => "$webworkDirs{conf}/templates/ur.template", |
| 139 | ); |
193 | ); |
| 140 | |
194 | |
| 141 | ################################################################################ |
195 | ################################################################################ |
| 142 | # Database and session |
196 | # Database options |
| 143 | ################################################################################ |
197 | ################################################################################ |
| 144 | |
198 | |
| 145 | # dbInfo records some data for the "old" WW/Classlist/Auth.pm database system |
199 | # Several database are defined in the file conf/database.conf and stored in the |
| 146 | # {auth,wwdb,cldb}_type = database type: GDBM currently implemented |
200 | # hash %dbLayouts. |
| 147 | # {auth_passwd,auth_perm,auth_keys,wwdb,cldb}_file = path to database file |
201 | include "conf/database.conf"; |
| 148 | %dbInfo = ( |
|
|
| 149 | auth_type => "GDBM", |
|
|
| 150 | auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB", |
|
|
| 151 | auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB", |
|
|
| 152 | auth_keys_file => "$courseDirs{auth_DATA}/keys", |
|
|
| 153 | wwdb_type => "GDBM", |
|
|
| 154 | wwdb_file => "$courseDirs{DATA}/$courseName\_webwork_DB", |
|
|
| 155 | cldb_type => "GDBM", |
|
|
| 156 | cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB", |
|
|
| 157 | psvn_digits => 5, |
|
|
| 158 | ); |
|
|
| 159 | |
202 | |
| 160 | # dbLayout records the schema and source for each table in the "new" DB.pm |
203 | # Select the default database layout. This can be overridden in the course.conf |
| 161 | # database system. consult DB.pm for the authoritative list of tables. |
204 | # file of a particular course. |
| 162 | # schema = perl module to use for access to the table |
205 | #$dbLayoutName = "sql"; |
| 163 | # driver = perl module to use for access to the data source |
206 | $dbLayoutName = "gdbm"; |
| 164 | # source = location of data source (i.e. path, url, DBI spec) |
207 | |
| 165 | # note: schema and driver must have the same interface. |
208 | *dbLayout = $dbLayouts{$dbLayoutName}; |
| 166 | %dbLayout = ( |
209 | |
|
|
210 | ################################################################################ |
|
|
211 | # Problem library options |
|
|
212 | ################################################################################ |
|
|
213 | |
|
|
214 | %problemLibrary = ( |
|
|
215 | root => "", # set to the top of the problem library, if its installed |
|
|
216 | sourceSQL => "ProblemLibrary", |
|
|
217 | userSQL => "webworkRead", |
| 167 | password => { |
218 | passwordSQL => "", |
| 168 | schema => "WeBWorK::DB::Schema::WW1Hash", |
|
|
| 169 | driver => "WeBWorK::DB::Driver::GDBM", |
|
|
| 170 | source => "$courseDirs{auth_DATA}/$courseName\_password_DB", |
|
|
| 171 | }, |
|
|
| 172 | permission => { |
|
|
| 173 | schema => "WeBWorK::DB::Schema::WW1Hash", |
|
|
| 174 | driver => "WeBWorK::DB::Driver::GDBM", |
|
|
| 175 | source => "gdbm:$courseDirs{auth_DATA}/$courseName\_permissions_DB", |
|
|
| 176 | }, |
|
|
| 177 | user => { |
|
|
| 178 | schema => "WeBWorK::DB::Schema::WW1Hash", |
|
|
| 179 | driver => "WeBWorK::DB::Driver::GDBM", |
|
|
| 180 | source => "gdbm:$courseDirs{auth_DATA}/keys", |
|
|
| 181 | }, |
|
|
| 182 | set => { |
|
|
| 183 | schema => "WeBWorK::DB::Schema::WW1Hash", |
|
|
| 184 | driver => "WeBWorK::DB::Driver::GDBM", |
|
|
| 185 | source => "gdbm:$courseDirs{auth_DATA}/keys", |
|
|
| 186 | }, |
|
|
| 187 | set_user => { |
|
|
| 188 | schema => "WeBWorK::DB::Schema::WW1Hash", |
|
|
| 189 | driver => "WeBWorK::DB::Driver::GDBM", |
|
|
| 190 | source => "gdbm:$courseDirs{auth_DATA}/keys", |
|
|
| 191 | }, |
|
|
| 192 | problem => { |
|
|
| 193 | schema => "WeBWorK::DB::Schema::WW1Hash", |
|
|
| 194 | driver => "WeBWorK::DB::Driver::GDBM", |
|
|
| 195 | source => "gdbm:$courseDirs{auth_DATA}/keys", |
|
|
| 196 | }, |
|
|
| 197 | problem_user => { |
|
|
| 198 | schema => "WeBWorK::DB::Schema::WW1Hash", |
|
|
| 199 | driver => "WeBWorK::DB::Driver::GDBM", |
|
|
| 200 | source => "gdbm:$courseDirs{auth_DATA}/keys", |
|
|
| 201 | }, |
|
|
| 202 | ); |
219 | ); |
| 203 | |
220 | |
|
|
221 | ################################################################################ |
|
|
222 | # Authorization system |
|
|
223 | ################################################################################ |
|
|
224 | |
| 204 | # This lets you specify a minimum permission level needed to perform |
225 | # This lets you specify a minimum permission level needed to perform certain |
| 205 | # certain actions. In the current system, >=10 will allow a professor |
226 | # actions. In the current system, >=10 will allow a professor to perform the |
| 206 | # to perform the action, >=5 will allow a TA to, and >=0 will allow a |
227 | # action, >=5 will allow a TA to, and >=0 will allow a student to perform an |
| 207 | # student to perform an action (almost never what you want). |
228 | # action (almost never what you want). |
|
|
229 | my $ta = 5; |
|
|
230 | my $professor = 10; |
| 208 | %permissionLevels = ( |
231 | %permissionLevels = ( |
| 209 | "become_student" => 10, |
232 | become_student => $professor, |
|
|
233 | access_instructor_tools => $ta, |
|
|
234 | create_and_delete_problem_sets => $professor, |
|
|
235 | modify_problem_sets => $professor, |
|
|
236 | assign_problem_sets => $professor, |
|
|
237 | modify_student_data => $professor, |
|
|
238 | score_sets => $professor, |
|
|
239 | send_mail => $professor, |
|
|
240 | modify_classlist_files => $professor, |
|
|
241 | modify_set_def_files => $professor, |
|
|
242 | modify_scoring_files => $professor, |
|
|
243 | create_and_delete_courses => $professor, |
| 210 | ); |
244 | ); |
|
|
245 | |
|
|
246 | ################################################################################ |
|
|
247 | # Session options |
|
|
248 | ################################################################################ |
| 211 | |
249 | |
| 212 | # $sessionKeyTimeout defines seconds of inactivity before a key expires |
250 | # $sessionKeyTimeout defines seconds of inactivity before a key expires |
| 213 | $sessionKeyTimeout = 60*30; |
251 | $sessionKeyTimeout = 60*30; |
|
|
252 | |
|
|
253 | # $sessionKeyLength defines the length (in characters) of the session key |
|
|
254 | $sessionKeyLength = 40; |
|
|
255 | |
|
|
256 | # @sessionKeyChars lists the legal session key characters |
|
|
257 | @sessionKeyChars = ('A'..'Z', 'a'..'z', '0'..'9', '.', '^', '/', '!', '*'); |
| 214 | |
258 | |
| 215 | # Practice users are users who's names start with $practiceUser |
259 | # Practice users are users who's names start with $practiceUser |
| 216 | # (you can comment this out to remove practice user support) |
260 | # (you can comment this out to remove practice user support) |
| 217 | $practiceUserPrefix = "practice"; |
261 | $practiceUserPrefix = "practice"; |
| 218 | |
262 | |
| … | |
… | |
| 225 | ################################################################################ |
269 | ################################################################################ |
| 226 | # PG translation options |
270 | # PG translation options |
| 227 | ################################################################################ |
271 | ################################################################################ |
| 228 | |
272 | |
| 229 | %pg = ( |
273 | %pg = ( |
|
|
274 | # available display modes |
|
|
275 | displayModes => [ qw(plainText formattedText images jsMath asciimath) ], |
|
|
276 | # pg options |
| 230 | options => { |
277 | options => { |
| 231 | # default translation options |
278 | # default translation options |
| 232 | displayMode => "images", |
279 | displayMode => "images", |
| 233 | showOldAnswers => 1, |
280 | showOldAnswers => 1, |
| 234 | showCorrectAnswers => 0, |
281 | showCorrectAnswers => 0, |
| 235 | showHints => 0, |
282 | showHints => 0, |
| 236 | showSolutions => 0, |
283 | showSolutions => 0, |
| 237 | catchWarnings => 1, |
284 | catchWarnings => 0, # there's a global warning catcher now |
| 238 | # default grader |
285 | # default grader |
| 239 | grader => "avg_problem_grader", |
286 | grader => "avg_problem_grader", |
|
|
287 | }, |
|
|
288 | # options for various renderers |
|
|
289 | renderers => { |
|
|
290 | "WeBWorK::PG::Remote" => { |
|
|
291 | proxy => "http://localhost:21000/RenderD" |
|
|
292 | } |
|
|
293 | }, |
|
|
294 | # currently selected renderer |
|
|
295 | renderer => "WeBWorK::PG::Local", |
|
|
296 | #renderer => "WeBWorK::PG::Remote", |
|
|
297 | # directories used by PG |
|
|
298 | directories => { |
|
|
299 | # directories used only by PG |
|
|
300 | root => "$pgRoot", |
|
|
301 | lib => "$pgRoot/lib", |
|
|
302 | macros => "$pgRoot/macros", |
|
|
303 | }, |
|
|
304 | # this can be customized in the course.conf file |
|
|
305 | specialPGEnvironmentVars => { |
|
|
306 | PRINT_FILE_NAMES_FOR => [ qw(professor) ], |
|
|
307 | CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/", |
|
|
308 | CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/", |
|
|
309 | CAPA_Graphics_URL => "$courseURLs{html}/CAPA_Graphics/", |
|
|
310 | CAPA_GraphicsDirectory => "$courseDirs{html}/CAPA_Graphics/", |
|
|
311 | onTheFlyImageSize => 400, |
| 240 | }, |
312 | }, |
| 241 | # modules lists module names and the packages each contains |
313 | # modules lists module names and the packages each contains |
| 242 | modules => [ |
314 | modules => [ |
| 243 | [qw(DynaLoader)], |
315 | [qw(DynaLoader)], |
| 244 | [qw(Exporter)], |
316 | [qw(Exporter)], |
| … | |
… | |
| 280 | numAbsTolDefault => .001, |
352 | numAbsTolDefault => .001, |
| 281 | numFormatDefault => "", |
353 | numFormatDefault => "", |
| 282 | numRelPercentTolDefault => .1, |
354 | numRelPercentTolDefault => .1, |
| 283 | numZeroLevelDefault => 1E-14, |
355 | numZeroLevelDefault => 1E-14, |
| 284 | numZeroLevelTolDefault => 1E-12, |
356 | numZeroLevelTolDefault => 1E-12, |
|
|
357 | useBaseTenLog => 0, |
|
|
358 | defaultDisplayMatrixStyle => "[s]", |
| 285 | }, |
359 | }, |
| 286 | ); |
360 | ); |