comparison wikiserverconfig.py @ 4621:7000bf88e348

MOIN_DEBUGGER=off/web/external
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 01 Mar 2009 18:15:00 +0100
parents 0e7c007f8ed9
children 2a024d3e418f
comparison
equal deleted inserted replaced
4620:158a65df340e 4621:7000bf88e348
27 # tuning options: 27 # tuning options:
28 #serverClass = 'ThreadPoolServer' 28 #serverClass = 'ThreadPoolServer'
29 #threadLimit = 10 29 #threadLimit = 10
30 #requestQueueSize = 50 30 #requestQueueSize = 50
31 31
32 # Use werkzeug's debugging middleware? 32 # How to debug? Your options:
33 # debug can be either set to True or False to directly enable/disable 33 # debug = 'off' # for production wikis, exceptions are logged
34 # the debugger. 34 # debug = 'web' # show traceback in the browser, offer debug console,
35 # CAUTION: Do not use True for production environments as it might disclose 35 # # this makes use of a built-in debugger (werkzeug.debug)
36 # sensitive informations and even enable doing evil things from the 36 # debug = 'external' # don't catch Exceptions, so some external debugger gets them
37 # debugger's web interface! 37 # CAUTION: Do not use anything but 'off' for production environments as it
38 # might disclose sensitive informations and even enable doing evil
39 # things from some debugger's web interface!
38 # For convenience, the default behaviour (see below) is to read the 40 # For convenience, the default behaviour (see below) is to read the
39 # environment variable MOIN_DEBUGGER. Setting it to True will enable the 41 # environment variable MOIN_DEBUGGER. If not set, it means the same as 'off'.
40 # debugger, anything else (or not setting it) will disable the debugger. 42 debug = os.environ.get('MOIN_DEBUGGER', 'off')
41 debug = os.environ.get('MOIN_DEBUGGER', 'False') == 'True'
42 43
43 # DEVELOPERS! Do not add your configuration items there, 44 # DEVELOPERS! Do not add your configuration items there,
44 # you could accidentally commit them! Instead, create a 45 # you could accidentally commit them! Instead, create a
45 # wikiserverconfig_local.py file containing this: 46 # wikiserverconfig_local.py file containing this:
46 # 47 #