[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 1108 - (download) (annotate)
Tue Jun 10 19:58:28 2003 UTC (9 years, 11 months ago) by sh002i
File size: 10404 byte(s)
changed global.conf.dist to include one of sql.conf or gdbm.conf. added
sql.conf.dist and gdbm.conf.dist. continuted documenting WeBWorK::DB
-sam

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

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9