[system] / trunk / webwork-modperl / conf / global.conf.dist Repository:
ViewVC logotype

View of /trunk/webwork-modperl/conf/global.conf.dist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 706 - (download) (annotate)
Tue Jan 21 20:25:51 2003 UTC (10 years, 4 months ago) by sh002i
File size: 8339 byte(s)
commented out allowedRecipients -- this should probably be set in
course.conf.
-sam

    1 #!perl
    2 ################################################################################
    3 # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester
    4 # $Id: global.conf.dist,v 1.11 2003-01-21 20:25:51 sh002i Exp $
    5 ################################################################################
    6 
    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.
    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,
   11 # use the "my" keyword. The following variables are available to this file:
   12 #
   13 #         $webworkRoot    directory that contains the WeBWorK distribution
   14 #         $webworkURL     base URL handled by Apache::WeBWorK
   15 #         $courseName     name of the course being used
   16 
   17 ################################################################################
   18 # WeBWorK settings
   19 ################################################################################
   20 
   21 %webworkDirs = (
   22   root    => "$webworkRoot",
   23   bin     => "$webworkRoot/bin",
   24   conf    => "$webworkRoot/conf",
   25   courses => "$webworkRoot/courses",
   26   lib     => "$webworkRoot/lib",
   27   logs    => "$webworkRoot/logs",
   28   macros  => "$webworkRoot/macros",
   29   tmp     => "$webworkRoot/tmp",
   30 );
   31 
   32 %webworkFiles = (
   33   environment => "$webworkDirs{conf}/global.conf",
   34   hardcopySnippets => {
   35     preamble       => "$webworkDirs{conf}/hardcopyPreamble.tex",
   36     setHeader      => "$webworkDirs{conf}/hardcopySetHeader.pg",
   37     problemDivider => "$webworkDirs{conf}/hardcopyProblemDivider.tex",
   38     setFooter      => "$webworkDirs{conf}/hardcopySetFooter.pg",
   39     setDivider     => "$webworkDirs{conf}/hardcopySetDivider.tex",
   40     postamble      => "$webworkDirs{conf}/hardcopyPostamble.tex",
   41   },
   42   screenSnippets => {
   43     setHeader => "$webworkDirs{conf}/screenSetHeader.pg",
   44   },
   45   logs => {
   46     timing      => "$webworkDirs{logs}/timing.log",
   47     transaction => "$courseDirs{logs}/transaction.log",
   48   },
   49 );
   50 
   51 %webworkURLs = (
   52   root    => "$webworkURLRoot",
   53   home    => "http://host.yourdomaon.edu/webwork-info",
   54   htdocs  => "/webwork_files",
   55   docs    => "http://webhost.math.rochester.edu/webworkdocs/docs",
   56   oldProf => "/webwork-old/profLogin.pl",
   57 );
   58 
   59 ################################################################################
   60 # Default course-specific settings
   61 ################################################################################
   62 
   63 my $courseRoot = "$webworkDirs{courses}/$courseName";
   64 %courseDirs = (
   65   root        => "$courseRoot",
   66   DATA        => "$courseRoot/DATA",
   67   auth_DATA   => "$courseRoot/DATA/.auth",
   68   html        => "$courseRoot/html",
   69   html_images => "$courseRoot/html/images",
   70   html_temp   => "$courseRoot/html/tmp",
   71   logs        => "$courseRoot/logs",
   72   scoring     => "$courseRoot/scoring",
   73   templates   => "$courseRoot/templates",
   74   macros      => "$courseRoot/templates/macros",
   75 );
   76 
   77 %courseFiles = (
   78   environment => "$courseDirs{root}/course.conf",
   79   motd        => "$courseDirs{root}/motd.txt",
   80 );
   81 
   82 # quick hack to fix transaction logging. blah.
   83 $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log";
   84 
   85 my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName";
   86 %courseURLs = (
   87   root      => "$courseURLRoot",
   88   html      => "$courseURLRoot",
   89   html_temp => "$courseURLRoot/tmp",
   90 );
   91 
   92 ################################################################################
   93 # Other site-specific options
   94 ################################################################################
   95 
   96 %mail = (
   97   smtpServer => "mail.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   #],
  115 );
  116 
  117 %externalPrograms = (
  118   tth      => "/usr/local/bin/tth",
  119   pdflatex => "/usr/local/bin/pdflatex",
  120   latex    => "/usr/local/bin/latex",
  121   dvipng   => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent",
  122   gif2eps  => "$webworkDirs{bin}/gif2eps",
  123   png2eps  => "$webworkDirs{bin}/png2eps",
  124   gif2png  => "$webworkDirs{bin}/gif2png",
  125 );
  126 
  127 ################################################################################
  128 # Frontend options
  129 ################################################################################
  130 
  131 %templates = (
  132   system => "$webworkDirs{conf}/barebones.template",
  133 );
  134 
  135 # $sessionKeyTimeout defines seconds of inactivity before a key expires
  136 $sessionKeyTimeout = 60*30;
  137 
  138 # Practice users are users who's names start with $practiceUser
  139 # (you can comment this out to remove practice user support)
  140 $practiceUserPrefix = "practice";
  141 
  142 # There is a practice user who can be logged in multiple times.  He's
  143 # commented out by default, though, so you don't hurt yourself.  It is
  144 # kindof a backdoor to the practice user system, since he doesn't have a
  145 # password.  Come to think of it, why do we even have this?!
  146 #$debugPracticeUser = "practice666";
  147 
  148 ################################################################################
  149 # Database and session
  150 ################################################################################
  151 
  152 %dbInfo = (
  153   auth_type        => "GDBM",
  154   auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB",
  155   auth_perm_file   => "$courseDirs{auth_DATA}/$courseName\_permissions_DB",
  156   auth_keys_file   => "$courseDirs{auth_DATA}/keys",
  157   wwdb_type        => "GDBM",
  158   wwdb_file        => "$courseDirs{DATA}/$courseName\_webwork_DB",
  159   cldb_type        => "GDBM",
  160   cldb_file        => "$courseDirs{DATA}/$courseName\_classlist_DB",
  161   psvn_digits      => 5,
  162 );
  163 
  164 # This lets you specify a minimum permission level needed to perform
  165 # certain actions.  In the current system, >=10 will allow a professor
  166 # to perform the action, >=5 will allow a TA to, and >=0 will allow a
  167 # student to perform an action (almost never what you want).
  168 %permissionLevels = (
  169   "become_student" => 10,
  170 );
  171 
  172 ################################################################################
  173 # PG translation options
  174 ################################################################################
  175 
  176 %pg = (
  177   options => {
  178     # default translation options
  179     displayMode        => "images",
  180     showOldAnswers     => 1,
  181     showCorrectAnswers => 0,
  182     showHints          => 0,
  183     showSolutions      => 0,
  184     catchWarnings      => 1,
  185     # default grader
  186     grader => "avg_problem_grader",
  187   },
  188   # modules lists module names and the packages each contains
  189   modules => [
  190     [qw(DynaLoader)],
  191     [qw(Exporter)],
  192     [qw(GD)],
  193 
  194     [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)],
  195     [qw(AnswerHash AnswerEvaluator)],
  196     [qw(WWPlot)], # required by Circle (and others)
  197     [qw(Circle)],
  198     [qw(Complex)],
  199     [qw(Complex1)],
  200     [qw(Distributions)],
  201     [qw(Fraction)],
  202     [qw(Fun)],
  203     [qw(Hermite)],
  204     [qw(Label)],
  205     [qw(List)],
  206     [qw(Match)],
  207     [qw(MatrixReal1)], # required by Matrix
  208     [qw(Matrix)],
  209     [qw(Multiple)],
  210     [qw(PGrandom)],
  211     [qw(Regression)],
  212     [qw(Select)],
  213     [qw(Units)],
  214     [qw(VectorField)],
  215   ],
  216   # defaults used by answer evaluators
  217   ansEvalDefaults => {
  218     functAbsTolDefault            => .001,
  219     functLLimitDefault            => .0000001,
  220     functMaxConstantOfIntegration => 1E8,
  221     functNumOfPoints              => 3,
  222     functRelPercentTolDefault     => .1,
  223     functULimitDefault            => .9999999,
  224     functVarDefault               => "x",
  225     functZeroLevelDefault         => 1E-14,
  226     functZeroLevelTolDefault      => 1E-12,
  227     numAbsTolDefault              => .001,
  228     numFormatDefault              => "",
  229     numRelPercentTolDefault       => .1,
  230     numZeroLevelDefault           => 1E-14,
  231     numZeroLevelTolDefault        => 1E-12,
  232   },
  233 );

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9