[system] / trunk / webwork2 / conf / global.conf.dist Repository:
ViewVC logotype

View of /trunk/webwork2/conf/global.conf.dist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1380 - (download) (annotate)
Mon Jul 14 15:21:52 2003 UTC (9 years, 11 months ago) by gage
File size: 11127 byte(s)
Updates for sendMail as well as PG/Local renderer and so forth
--Mike

    1 #!perl
    2 ################################################################################
    3 # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester
    4 # $Id: global.conf.dist,v 1.37 2003-07-14 15:21:52 gage 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 #         $pgRoot         directory that contains the PG distribution
   16 #         $courseName     name of the course being used
   17 
   18 ################################################################################
   19 # WeBWorK settings
   20 ################################################################################
   21 
   22 %webworkDirs = (
   23   root    => "$webworkRoot",
   24   bin     => "$webworkRoot/bin",
   25   conf    => "$webworkRoot/conf",
   26   courses => "$webworkRoot/courses",
   27   lib     => "$webworkRoot/lib",
   28   logs    => "$webworkRoot/logs",
   29   macros  => "$pgRoot/macros",
   30   tmp     => "$webworkRoot/tmp",
   31 );
   32 
   33 %webworkFiles = (
   34   environment        => "$webworkDirs{conf}/global.conf",
   35   hardcopySnippets   => {
   36     preamble       => "$webworkDirs{conf}/snippets/hardcopyPreamble.tex",
   37     setHeader      => "$webworkDirs{conf}/snippets/hardcopySetHeader.pg",
   38     problemDivider => "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex",
   39     setFooter      => "$webworkDirs{conf}/snippets/hardcopySetFooter.pg",
   40     setDivider     => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex",
   41     userDivider    => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex",
   42     postamble      => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex",
   43   },
   44   screenSnippets => {
   45     setHeader => "$webworkDirs{conf}/snippets/setHeader.pg",
   46   },
   47   logs => {
   48     timing         => "$webworkDirs{logs}/timing.log",
   49   },
   50 );
   51 
   52 %webworkURLs = (
   53   root    => "$webworkURLRoot",
   54   home    => "/webwork2_files/index.html",
   55   htdocs  => "/webwork2_files",
   56   docs    => "http://webhost.math.rochester.edu/webworkdocs/docs",
   57   oldProf => "/webwork-old/profLogin.pl",
   58 );
   59 
   60 ################################################################################
   61 # Default course-specific settings
   62 ################################################################################
   63 
   64 my $courseRoot = "$webworkDirs{courses}/$courseName";
   65 %courseDirs = (
   66   root        => "$courseRoot",
   67   DATA        => "$courseRoot/DATA",
   68   auth_DATA   => "$courseRoot/DATA/.auth",
   69   html        => "$courseRoot/html",
   70   html_images => "$courseRoot/html/images",
   71   html_temp   => "$courseRoot/html/tmp",
   72   logs        => "$courseRoot/logs",
   73   scoring     => "$courseRoot/scoring",
   74   templates   => "$courseRoot/templates",
   75   macros      => "$courseRoot/templates/macros",
   76   email       => "$courseRoot/templates/email",
   77 );
   78 
   79 %courseFiles = (
   80   environment => "$courseDirs{root}/course.conf",
   81   motd        => "$courseDirs{root}/motd.txt",
   82 );
   83 
   84 # quick hack to fix transaction logging. blah.
   85 $webworkFiles{logs}->{transaction}    = "$courseDirs{logs}/transaction.log";
   86 $webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log";
   87 
   88 my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName";
   89 %courseURLs = (
   90   root      => "$courseURLRoot",
   91   html      => "$courseURLRoot",
   92   html_temp => "$courseURLRoot/tmp",
   93 );
   94 
   95 ################################################################################
   96 # Other site-specific options
   97 ################################################################################
   98 
   99 %mail = (
  100   smtpServer => "mail.math.rochester.edu",
  101   smtpSender => "webwork\@math.rochester.edu",
  102   # allowedRecipients defines addresses that the PG system is allowed to
  103   # send mail to. this prevents subtle PG exploits. This should be set
  104   # in course.conf to the addresses of professors of each course. Sending
  105   # mail from the PG system (i.e. questionaires, essay questions) will
  106   # fail if this is not set somewhere (either here or in course.conf).
  107   #allowedRecipients => [
  108   # "yourname\@host.yourdomain.edu",
  109   #],
  110   # if defined, feedbackRecipients overrides the list of recipients for
  111   # feedback email. It's appropriate to set this in the course.conf for
  112   # specific courses, but probably not in global.conf. if not defined,
  113   # mail is sent to all professors and TAs for a given course
  114   #feedbackRecipients => [
  115   # "prof1\@host.yourdomain.edu",
  116   # "prof2\@host.yourdomain.edu",
  117   #],
  118   # feedbackVerbosity:
  119   #  0: send only the feedback comment and context link
  120   #  1: as in 0, plus user, set, problem, and PG data
  121   #  2: as in 1, plus the problem environment (debugging data)
  122   feedbackVerbosity      => 1,
  123   editor_window_rows     => 15,
  124   editor_window_columns  => 100,
  125 );
  126 
  127 %externalPrograms = (
  128   mkdir    => "/bin/mkdir",
  129   tth      => "/usr/local/bin/tth",
  130   pdflatex => "/usr/local/bin/pdflatex",
  131   latex    => "/usr/local/bin/latex",
  132   #dvipng   => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent",
  133   dvipng   => "/usr/local/bin/dvipng",
  134   gif2eps  => "$webworkDirs{bin}/gif2eps",
  135   png2eps  => "$webworkDirs{bin}/png2eps",
  136   gif2png  => "$webworkDirs{bin}/gif2png",
  137 );
  138 
  139 ################################################################################
  140 # Frontend options
  141 ################################################################################
  142 
  143 %templates = (
  144   system => "$webworkDirs{conf}/templates/ur.template",
  145 );
  146 
  147 ################################################################################
  148 # Database options
  149 ################################################################################
  150 
  151 # Several database layouts are defined in separate environment files. Select the
  152 # one which should be used by all courses by default, and include it. This can
  153 # be overridden by including a difference environment file in the course.conf of
  154 # a particular course.
  155 
  156 # Include sql.conf to specify a database layout for use with an SQL server.
  157 #include "conf/sql.conf";
  158 
  159 # Include gdbm.conf to specify a database layout for WeBWorK 1.x compatible GDBM
  160 # databases. Use this layout if you wish to share courses between WeBWorK 1.x
  161 # and WeBWorK 2.
  162 include "conf/gdbm.conf";
  163 
  164 # Please read the documentation in the file that you chose to include, as there
  165 # are layout-specific options that must be configured.
  166 
  167 ################################################################################
  168 # Authorization system
  169 ################################################################################
  170 
  171 # This lets you specify a minimum permission level needed to perform certain
  172 # actions.  In the current system, >=10 will allow a professor to perform the
  173 # action, >=5 will allow a TA to, and >=0 will allow a student to perform an
  174 # action (almost never what you want).
  175 my $ta = 5;
  176 my $professor = 10;
  177 %permissionLevels = (
  178   become_student                 => $professor,
  179   access_instructor_tools        => $ta,
  180   create_and_delete_problem_sets => $professor,
  181   modify_problem_sets            => $professor,
  182   assign_problem_sets            => $professor,
  183   modify_student_data            => $professor,
  184   send_mail            => $professor,
  185 );
  186 
  187 ################################################################################
  188 # Session options
  189 ################################################################################
  190 
  191 # $sessionKeyTimeout defines seconds of inactivity before a key expires
  192 $sessionKeyTimeout = 60*30;
  193 
  194 # $sessionKeyLength defines the length (in characters) of the session key
  195 $sessionKeyLength = 40;
  196 
  197 # @sessionKeyChars lists the legal session key characters
  198 @sessionKeyChars = ('A'..'Z', 'a'..'z', '0'..'9', '.', '^', '/', '!', '*');
  199 
  200 # Practice users are users who's names start with $practiceUser
  201 # (you can comment this out to remove practice user support)
  202 $practiceUserPrefix = "practice";
  203 
  204 # There is a practice user who can be logged in multiple times.  He's
  205 # commented out by default, though, so you don't hurt yourself.  It is
  206 # kindof a backdoor to the practice user system, since he doesn't have a
  207 # password.  Come to think of it, why do we even have this?!
  208 #$debugPracticeUser = "practice666";
  209 
  210 ################################################################################
  211 # PG translation options
  212 ################################################################################
  213 
  214 %pg = (
  215   # options for various renderers
  216   renderers => {
  217     "WeBWorK::PG::Remote" => {
  218       uri => "http://localhost:8089/RPC2"
  219     }
  220   },
  221   # currently selected renderer
  222   renderer => "WeBWorK::PG::Local",
  223   # directories used by PG
  224   # options for various renderers
  225   renderers => {
  226     "WeBWorK::PG::Remote" => {
  227       uri => "http://localhost:8089/RPC2"
  228     }
  229   },
  230   # currently selected renderer
  231   renderer => "WeBWorK::PG::Local",
  232   # directories used by PG
  233   directories => {
  234     # directories used only by PG
  235     lib    => "$pgRoot/lib",
  236     macros => "$pgRoot/macros",
  237   },
  238   options => {
  239     # default translation options
  240     displayMode        => "images",
  241     showOldAnswers     => 1,
  242     showCorrectAnswers => 0,
  243     showHints          => 0,
  244     showSolutions      => 0,
  245     catchWarnings      => 0, # there's a global warning catcher now
  246     # default grader
  247     grader => "avg_problem_grader",
  248   },
  249   # this will be customized in the course.conf file
  250   specialPGEnvironmentVars => {
  251     PRINT_FILE_NAMES_FOR   => [ qw(gage apizer voloshin lr003k professor) ],
  252     CAPA_Tools             => "$courseDirs{macros}/CAPA_Tools/",
  253     CAPA_MCTools           => "$courseDirs{macros}/CAPA_MCTools/",
  254     CAPA_Graphics_URL      => "$courseDirs{html}/CAPA_Graphics/",
  255     CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/",
  256   },
  257   # modules lists module names and the packages each contains
  258   modules => [
  259     [qw(DynaLoader)],
  260     [qw(Exporter)],
  261     [qw(GD)],
  262 
  263     [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)],
  264     [qw(AnswerHash AnswerEvaluator)],
  265     [qw(WWPlot)], # required by Circle (and others)
  266     [qw(Circle)],
  267     [qw(Complex)],
  268     [qw(Complex1)],
  269     [qw(Distributions)],
  270     [qw(Fraction)],
  271     [qw(Fun)],
  272     [qw(Hermite)],
  273     [qw(Label)],
  274     [qw(List)],
  275     [qw(Match)],
  276     [qw(MatrixReal1)], # required by Matrix
  277     [qw(Matrix)],
  278     [qw(Multiple)],
  279     [qw(PGrandom)],
  280     [qw(Regression)],
  281     [qw(Select)],
  282     [qw(Units)],
  283     [qw(VectorField)],
  284   ],
  285   # defaults used by answer evaluators
  286   ansEvalDefaults => {
  287     functAbsTolDefault            => .001,
  288     functLLimitDefault            => .0000001,
  289     functMaxConstantOfIntegration => 1E8,
  290     functNumOfPoints              => 3,
  291     functRelPercentTolDefault     => .1,
  292     functULimitDefault            => .9999999,
  293     functVarDefault               => "x",
  294     functZeroLevelDefault         => 1E-14,
  295     functZeroLevelTolDefault      => 1E-12,
  296     numAbsTolDefault              => .001,
  297     numFormatDefault              => "",
  298     numRelPercentTolDefault       => .1,
  299     numZeroLevelDefault           => 1E-14,
  300     numZeroLevelTolDefault        => 1E-12,
  301   },
  302 );

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9