[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 2507 Revision 2508
1#!perl 1#!perl
2################################################################################ 2################################################################################
3# WeBWorK Online Homework Delivery System 3# WeBWorK Online Homework Delivery System
4# Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ 4# Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
5# $CVSHeader: webwork2/conf/global.conf.dist,v 1.89 2004/07/12 16:20:41 sh002i Exp $ 5# $CVSHeader: webwork2/conf/global.conf.dist,v 1.90 2004/07/12 22:15:51 sh002i Exp $
6# 6#
7# This program is free software; you can redistribute it and/or modify it under 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 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 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. 10# version, or (b) the "Artistic License" which comes with this package.
33# $webwork_courses_dir The path to the WeBWorK courses directory. 33# $webwork_courses_dir The path to the WeBWorK courses directory.
34# 34#
35# In addition, the $courseName variable holds the name of the current course. 35# In addition, the $courseName variable holds the name of the current course.
36 36
37################################################################################ 37################################################################################
38# Paths to external programs
39################################################################################
40
41$externalPrograms{mkdir} = "/bin/mkdir";
42$externalPrograms{mysql} = "/usr/local/bin/mysql";
43
44$externalPrograms{latex} = "/usr/local/bin/latex";
45$externalPrograms{pdflatex} = "/usr/local/bin/pdflatex";
46$externalPrograms{dvipng} = "/usr/local/bin/dvipng";
47$externalPrograms{tth} = "/usr/local/bin/tth";
48
49################################################################################
50# Mail settings
51################################################################################
52
53# Mail sent by the PG system and the mail merge and feedback modules will be
54# sent via this SMTP server.
55$mail{smtpServer} = 'mail.yourschool.edu';
56
57# When connecting to the above server, WeBWorK will send this address in the
58# MAIL FROM command. This has nothing to do with the "From" address on the mail
59# message. It can really be anything, but some mail servers require it contain
60# a valid mail domain, or at least be well-formed.
61$mail{smtpSender} = 'webwork@yourserver.yourschool.edu';
62
63# AllowedRecipients defines addresses that the PG system is allowed to send mail
64# to. this prevents subtle PG exploits. This should be set in course.conf to the
65# addresses of professors of each course. Sending mail from the PG system (i.e.
66# questionaires, essay questions) will fail if this is not set somewhere (either
67# here or in course.conf).
68$mail{allowedRecipients} = [
69 #'prof1@yourserver.yourdomain.edu',
70 #'prof2@yourserver.yourdomain.edu',
71];
72
73# If defined, feedbackRecipients overrides the list of recipients for feedback
74# email. It's appropriate to set this in the course.conf for specific courses,
75# but probably not in global.conf. if not defined, mail is sent to all
76# professors and TAs for a given course
77$mail{feedbackRecipients} = [
78 #'prof1@yourserver.yourdomain.edu',
79 #'prof2@yourserver.yourdomain.edu',
80];
81
82# feedbackVerbosity:
83# 0: send only the feedback comment and context link
84# 1: as in 0, plus user, set, problem, and PG data
85# 2: as in 1, plus the problem environment (debugging data)
86$mail{feedbackVerbosity} = 1;
87
88# Defines the size of the Mail Merge editor window
89# FIXME: should this be here? it's UI, not mail
90# FIXME: replace this with the auto-size method that TWiki uses
91$mail{editor_window_rows} = 15;
92$mail{editor_window_columns} = 100;
93
94################################################################################
38# System-wide locations (directories and URLs) 95# System-wide locations (directories and URLs)
39################################################################################ 96################################################################################
40 97
41# The root directory, set by webwork_root variable in Apache configuration. 98# The root directory, set by webwork_root variable in Apache configuration.
42$webworkDirs{root} = "$webwork_dir"; 99$webworkDirs{root} = "$webwork_dir";
214# library, provided templates/rochester and templates/asu exists. 271# library, provided templates/rochester and templates/asu exists.
215# 272#
216$courseFiles{problibs} = {}; 273$courseFiles{problibs} = {};
217 274
218################################################################################ 275################################################################################
276# Database options
277################################################################################
278
279# Several database are defined in the file conf/database.conf and stored in the
280# hash %dbLayouts.
281include "conf/database.conf";
282
283# Select the default database layout. This can be overridden in the course.conf
284# file of a particular course. If you choose "gdbm", WeBWorK will be able to
285# use courses from WeBWorK 1 without first adding course.conf files to them.
286# However, the recommended database layout for new courses is "sql". This can
287# be set when creating a course.
288$dbLayoutName = "sql"; # or "gdbm";
289
290# This sets the symbol "dbLayout" as an alias for the selected database layout.
291*dbLayout = $dbLayouts{$dbLayoutName};
292
293################################################################################
294# Problem library options
295################################################################################
296
297# The directory containing the problem library files. Set to "" if no problem
298# library is installed.
299$problemLibrary{root} = "";
300
301# The name of the SQL database containing problem metadata
302$problemLibrary{sourceSQL} = "ProblemLibrary";
303
304# The user name to use when connecting to the problem library database
305$problemLibrary{userSQL} = "webworkRead";
306
307# The password to use when connecting to the problem library database
308$problemLibrary{passwordSQL} = "";
309
310################################################################################
219# Logs 311# Logs
220################################################################################ 312################################################################################
221 313
222# FIXME: take logs out of %webworkFiles/%courseFiles and give them their own 314# FIXME: take logs out of %webworkFiles/%courseFiles and give them their own
223# top-level hash. 315# top-level hash.
234 326
235# The answer log stores a history of all users' submitted answers. 327# The answer log stores a history of all users' submitted answers.
236$courseFiles{logs}{answer_log} = "$courseDirs{logs}/answer_log"; 328$courseFiles{logs}{answer_log} = "$courseDirs{logs}/answer_log";
237 329
238################################################################################ 330################################################################################
239# Mail settings
240################################################################################
241
242# Mail sent by the PG system and the mail merge and feedback modules will be
243# sent via this SMTP server.
244$mail{smtpServer} = 'mail.yourschool.edu';
245
246# When connecting to the above server, WeBWorK will send this address in the
247# MAIL FROM command. This has nothing to do with the "From" address on the mail
248# message. It can really be anything, but some mail servers require it contain
249# a valid mail domain, or at least be well-formed.
250$mail{smtpSender} = 'webwork@yourserver.yourschool.edu';
251
252# AllowedRecipients defines addresses that the PG system is allowed to send mail
253# to. this prevents subtle PG exploits. This should be set in course.conf to the
254# addresses of professors of each course. Sending mail from the PG system (i.e.
255# questionaires, essay questions) will fail if this is not set somewhere (either
256# here or in course.conf).
257$mail{allowedRecipients} = [
258 #'prof1@yourserver.yourdomain.edu',
259 #'prof2@yourserver.yourdomain.edu',
260];
261
262# If defined, feedbackRecipients overrides the list of recipients for feedback
263# email. It's appropriate to set this in the course.conf for specific courses,
264# but probably not in global.conf. if not defined, mail is sent to all
265# professors and TAs for a given course
266$mail{feedbackRecipients} = [
267 #'prof1@yourserver.yourdomain.edu',
268 #'prof2@yourserver.yourdomain.edu',
269];
270
271# feedbackVerbosity:
272# 0: send only the feedback comment and context link
273# 1: as in 0, plus user, set, problem, and PG data
274# 2: as in 1, plus the problem environment (debugging data)
275$mail{feedbackVerbosity} = 1;
276
277# Defines the size of the Mail Merge editor window
278# FIXME: should this be here? it's UI, not mail
279# FIXME: replace this with the auto-size method that TWiki uses
280$mail{editor_window_rows} = 15;
281$mail{editor_window_columns} = 100;
282
283################################################################################
284# Paths to external programs 331# More paths to external programs
285################################################################################ 332################################################################################
286
287$externalPrograms{mkdir} = "/bin/mkdir";
288$externalPrograms{mysql} = "/usr/local/bin/mysql";
289
290$externalPrograms{latex} = "/usr/local/bin/latex";
291$externalPrograms{pdflatex} = "/usr/local/bin/pdflatex";
292$externalPrograms{dvipng} = "/usr/local/bin/dvipng";
293$externalPrograms{tth} = "/usr/local/bin/tth";
294 333
295# These image conversion utilities are included in the WeBWorK distribution. 334# These image conversion utilities are included in the WeBWorK distribution.
296$externalPrograms{gif2eps} = "$webworkDirs{bin}/gif2eps"; 335$externalPrograms{gif2eps} = "$webworkDirs{bin}/gif2eps";
297$externalPrograms{png2eps} = "$webworkDirs{bin}/png2eps"; 336$externalPrograms{png2eps} = "$webworkDirs{bin}/png2eps";
298$externalPrograms{gif2png} = "$webworkDirs{bin}/gif2png"; 337$externalPrograms{gif2png} = "$webworkDirs{bin}/gif2png";
319################################################################################ 358################################################################################
320 359
321%templates = ( 360%templates = (
322 system => "$webworkDirs{conf}/templates/ur.template", 361 system => "$webworkDirs{conf}/templates/ur.template",
323); 362);
324
325################################################################################
326# Database options
327################################################################################
328
329# Several database are defined in the file conf/database.conf and stored in the
330# hash %dbLayouts.
331include "conf/database.conf";
332
333# Select the default database layout. This can be overridden in the course.conf
334# file of a particular course. If you choose "gdbm", WeBWorK will be able to
335# use courses from WeBWorK 1 without first adding course.conf files to them.
336# However, the recommended database layout for new courses is "sql". This can
337# be set when creating a course.
338$dbLayoutName = "sql"; # or "gdbm";
339
340# This sets the symbol "dbLayout" as an alias for the selected database layout.
341*dbLayout = $dbLayouts{$dbLayoutName};
342
343################################################################################
344# Problem library options
345################################################################################
346
347# The directory containing the problem library files. Set to "" if no problem
348# library is installed.
349$problemLibrary{root} = "";
350
351# The name of the SQL database containing problem metadata
352$problemLibrary{sourceSQL} = "ProblemLibrary";
353
354# The user name to use when connecting to the problem library database
355$problemLibrary{userSQL} = "webworkRead";
356
357# The password to use when connecting to the problem library database
358$problemLibrary{passwordSQL} = "";
359 363
360################################################################################ 364################################################################################
361# Authorization system 365# Authorization system
362################################################################################ 366################################################################################
363 367

Legend:
Removed from v.2507  
changed lines
  Added in v.2508

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9