diff 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
line wrap: on
line diff
--- a/wikiserverconfig.py	Tue Aug 25 16:39:07 2009 +0200
+++ b/wikiserverconfig.py	Tue Aug 25 18:46:40 2009 +0200
@@ -7,28 +7,19 @@
 from MoinMoin.script.server.standalone import DefaultConfig
 
 class LocalConfig(DefaultConfig):
-    port = 8080 # if you use port < 1024, you need to start as root
+    # hostname or IP the server listens on
+    # use '' for all interfaces
+    # or "1.2.3.4" for some specific IP
+    #hostname = 'localhost'
+
+    # if you use port < 1024, you need to start as root
+    #port = 8080
 
     # if you start the server as root, the standalone server can change
     # to this user and group, e.g. 'www-data'
     #user = ''
     #group = ''
 
-    # use '' for all interface or "1.2.3.4" for some specific IP
-    #interface = 'localhost'
-
-    # where the static data is served from - you can either use:
-    # docs = True  # serve the builtin static data from MoinMoin/web/static/htdocs
-    # docs = '/where/ever/you/like/to/keep/htdocs'  # serve it from the given path
-    # docs = False  # do not serve static files at all (will not work except
-    #               # you serve them in some other working way)
-    docs = True
-
-    # tuning options:
-    #serverClass = 'ThreadPoolServer'
-    #threadLimit = 10
-    #requestQueueSize = 50
-
     # How to debug? Your options:
     # debug = 'off' # for production wikis, exceptions are logged
     # debug = 'web' # show traceback in the browser, offer debug console,
@@ -41,6 +32,7 @@
     # environment variable MOIN_DEBUGGER. If not set, it means the same as 'off'.
     debug = os.environ.get('MOIN_DEBUGGER', 'off')
 
+
 # DEVELOPERS! Do not add your configuration items there,
 # you could accidentally commit them! Instead, create a
 # wikiserverconfig_local.py file containing this: