comparison wikiserverconfig.py @ 4605:edb6cb2cac43

Environment variable MOIN_DEBUGGER=True will enable werkzeug's debugger for the standalone wikiserver
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 22 Feb 2009 22:46:18 +0100
parents be29346a6aa3
children e7f1cf9eeb96
comparison
equal deleted inserted replaced
4604:5d94d48eb350 4605:edb6cb2cac43
1 """ 1 """
2 Standalone server configuration, you can either use this file or 2 Standalone server configuration, you can either use this file or
3 commandline options to configure server options. 3 commandline options to configure server options.
4 """ 4 """
5 import os
5 6
6 from MoinMoin.script.server.standalone import DefaultConfig 7 from MoinMoin.script.server.standalone import DefaultConfig
7 8
8 class Config(DefaultConfig): 9 class Config(DefaultConfig):
9 port = 8080 # if you use port < 1024, you need to start as root 10 port = 8080 # if you use port < 1024, you need to start as root
22 # tuning options: 23 # tuning options:
23 #serverClass = 'ThreadPoolServer' 24 #serverClass = 'ThreadPoolServer'
24 #threadLimit = 10 25 #threadLimit = 10
25 #requestQueueSize = 50 26 #requestQueueSize = 50
26 27
28 # Use werkzeug's debugging middleware?
29 # debug can be either set to True or False to directly enable/disable
30 # the debugger.
31 # CAUTION: Do not use True for production environments as it might disclose
32 # sensitive informations and even enable doing evil things from the
33 # debugger's web interface!
34 # For convenience, the default behaviour (see below) is to read the
35 # environment variable MOIN_DEBUGGER. Setting it to True will enable the
36 # debugger, anything else (or not setting it) will disable the debugger.
37 debug = os.environ.get('MOIN_DEBUGGER', 'False') == 'True'
38