[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 1617 - (download) (annotate)
Tue Nov 4 02:29:23 2003 UTC (9 years, 6 months ago) by sh002i
File size: 11719 byte(s)
support for FileXfer and Upload.

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

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9