| 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.4 2002-12-06 17:50:21 malsyned Exp $ |
4 | # $Id: global.conf.dist,v 1.10 2003-01-21 20:24:03 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. |
| 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 | # $courseName name of the course being used |
15 | # $courseName name of the course being used |
| 15 | |
16 | |
| 16 | ################################################################################ |
17 | ################################################################################ |
| 17 | # WeBWorK settings |
18 | # WeBWorK settings |
| 18 | ################################################################################ |
19 | ################################################################################ |
| … | |
… | |
| 45 | timing => "$webworkDirs{logs}/timing.log", |
46 | timing => "$webworkDirs{logs}/timing.log", |
| 46 | transaction => "$courseDirs{logs}/transaction.log", |
47 | transaction => "$courseDirs{logs}/transaction.log", |
| 47 | }, |
48 | }, |
| 48 | ); |
49 | ); |
| 49 | |
50 | |
| 50 | my $webworkURLRoot = "/webwork"; # *** # this should be detected! |
|
|
| 51 | %webworkURLs = ( |
51 | %webworkURLs = ( |
| 52 | root => "$webworkURLRoot", |
52 | root => "$webworkURLRoot", |
|
|
53 | home => "http://host.yourdomaon.edu/webwork-info", |
| 53 | htdocs => "/webwork_files", |
54 | htdocs => "/webwork_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 | |
| … | |
… | |
| 73 | macros => "$courseRoot/templates/macros", |
74 | macros => "$courseRoot/templates/macros", |
| 74 | ); |
75 | ); |
| 75 | |
76 | |
| 76 | %courseFiles = ( |
77 | %courseFiles = ( |
| 77 | environment => "$courseDirs{root}/course.conf", |
78 | environment => "$courseDirs{root}/course.conf", |
|
|
79 | motd => "$courseDirs{root}/motd.txt", |
| 78 | ); |
80 | ); |
|
|
81 | |
|
|
82 | # quick hack to fix transaction logging. blah. |
|
|
83 | $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; |
| 79 | |
84 | |
| 80 | my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName"; |
85 | my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName"; |
| 81 | %courseURLs = ( |
86 | %courseURLs = ( |
| 82 | base => "$courseURLRoot", # *** # this should be "root"? |
87 | root => "$courseURLRoot", |
| 83 | html => "$courseURLRoot", |
88 | html => "$courseURLRoot", |
| 84 | html_temp => "$courseURLRoot/tmp", |
89 | html_temp => "$courseURLRoot/tmp", |
| 85 | ); |
90 | ); |
| 86 | |
91 | |
| 87 | ################################################################################ |
92 | ################################################################################ |
| … | |
… | |
| 89 | ################################################################################ |
94 | ################################################################################ |
| 90 | |
95 | |
| 91 | %mail = ( |
96 | %mail = ( |
| 92 | smtpServer => "mail.math.rochester.edu", |
97 | smtpServer => "mail.math.rochester.edu", |
| 93 | smtpSender => "webwork\@math.rochester.edu", |
98 | smtpSender => "webwork\@math.rochester.edu", |
|
|
99 | # allowedRecipients defines addresses that the PG system is allowed to |
|
|
100 | # 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 |
|
|
102 | # 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). |
|
|
104 | allowedRecipients => [ |
|
|
105 | "yourname\@host.yourdomain.edu", |
|
|
106 | ], |
|
|
107 | # if defined, feedbackRecipients overrides the list of recipients for |
|
|
108 | # 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, |
|
|
110 | # mail is sent to all professors and TAs for a given course |
|
|
111 | #feedbackRecipients => [ |
|
|
112 | # "prof1\@host.yourdomain.edu", |
|
|
113 | # "prof2\@host.yourdomain.edu", |
|
|
114 | #], |
| 94 | ); |
115 | ); |
| 95 | |
116 | |
| 96 | %externalPrograms = ( |
117 | %externalPrograms = ( |
| 97 | mv => "/bin/mv", # *** is this used? probably not... |
|
|
| 98 | tth => "/usr/local/bin/tth", |
118 | tth => "/usr/local/bin/tth", |
| 99 | pdflatex => "/usr/local/bin/pdflatex", |
119 | pdflatex => "/usr/local/bin/pdflatex", |
| 100 | latex => "/usr/local/bin/latex", |
120 | latex => "/usr/local/bin/latex", |
| 101 | dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent", |
121 | dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent", |
| 102 | gif2eps => "$webworkDirs{bin}/gif2eps", |
122 | gif2eps => "$webworkDirs{bin}/gif2eps", |