comparison wikiserverconfig.py @ 4960:2a024d3e418f

simplify wikiserver configuration by using same names as werkzeug's run_simple wikiserverconfig changes: use hostname=... now (not interface=... any more) using --interface for the moin server standalone command still works (--hostname is also supported) we can add options/arguments for werkzeug's run_simple and our own run_server now easily, just the option name needs to be listed in the kwargs processing. stuff not explicitely declared as param in run_server will get passed through to run_simple via **kw made DefaultConfig a new style class removed unsupported options (leftovers from pre-WSGI standalone server)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 25 Aug 2009 18:46:40 +0200
parents 7000bf88e348
children 5b262b81c236
comparison
equal deleted inserted replaced
4959:18474c316dd7 4960:2a024d3e418f
5 import os 5 import os
6 6
7 from MoinMoin.script.server.standalone import DefaultConfig 7 from MoinMoin.script.server.standalone import DefaultConfig
8 8
9 class LocalConfig(DefaultConfig): 9 class LocalConfig(DefaultConfig):
10 port = 8080 # if you use port < 1024, you need to start as root 10 # hostname or IP the server listens on
11 # use '' for all interfaces
12 # or "1.2.3.4" for some specific IP
13 #hostname = 'localhost'
14
15 # if you use port < 1024, you need to start as root
16 #port = 8080
11 17
12 # if you start the server as root, the standalone server can change 18 # if you start the server as root, the standalone server can change
13 # to this user and group, e.g. 'www-data' 19 # to this user and group, e.g. 'www-data'
14 #user = '' 20 #user = ''
15 #group = '' 21 #group = ''
16
17 # use '' for all interface or "1.2.3.4" for some specific IP
18 #interface = 'localhost'
19
20 # where the static data is served from - you can either use:
21 # docs = True # serve the builtin static data from MoinMoin/web/static/htdocs
22 # docs = '/where/ever/you/like/to/keep/htdocs' # serve it from the given path
23 # docs = False # do not serve static files at all (will not work except
24 # # you serve them in some other working way)
25 docs = True
26
27 # tuning options:
28 #serverClass = 'ThreadPoolServer'
29 #threadLimit = 10
30 #requestQueueSize = 50
31 22
32 # How to debug? Your options: 23 # How to debug? Your options:
33 # debug = 'off' # for production wikis, exceptions are logged 24 # debug = 'off' # for production wikis, exceptions are logged
34 # debug = 'web' # show traceback in the browser, offer debug console, 25 # debug = 'web' # show traceback in the browser, offer debug console,
35 # # this makes use of a built-in debugger (werkzeug.debug) 26 # # this makes use of a built-in debugger (werkzeug.debug)
38 # might disclose sensitive informations and even enable doing evil 29 # might disclose sensitive informations and even enable doing evil
39 # things from some debugger's web interface! 30 # things from some debugger's web interface!
40 # For convenience, the default behaviour (see below) is to read the 31 # For convenience, the default behaviour (see below) is to read the
41 # environment variable MOIN_DEBUGGER. If not set, it means the same as 'off'. 32 # environment variable MOIN_DEBUGGER. If not set, it means the same as 'off'.
42 debug = os.environ.get('MOIN_DEBUGGER', 'off') 33 debug = os.environ.get('MOIN_DEBUGGER', 'off')
34
43 35
44 # DEVELOPERS! Do not add your configuration items there, 36 # DEVELOPERS! Do not add your configuration items there,
45 # you could accidentally commit them! Instead, create a 37 # you could accidentally commit them! Instead, create a
46 # wikiserverconfig_local.py file containing this: 38 # wikiserverconfig_local.py file containing this:
47 # 39 #