comparison wikiserverconfig.py @ 4613:e7f1cf9eeb96

Static file serving built-in (see details below). Moved wiki/htdocs to MoinMoin/web/static/htdocs. MoinMoin.web.static has a static file serving wrapper that uses the files from htdocs subdirectory by default (docs=True). You can also give another path or switch off creation of that static wrapper. See the docstring of the static package for details. distutils had a major problem after I wanted it to just include everything below MoinMoin/web/static/htdocs - if you try to just use a glob ('htdocs/*'), it breaks distutils at 'setup.py install' time, because that glob matches directories and distutils only expects files. Therefore I added make_filelist to setup.py which creates just a list of all files below some specified directory.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 01 Mar 2009 03:02:57 +0100
parents edb6cb2cac43
children 0e7c007f8ed9
comparison
equal deleted inserted replaced
4612:a6461afbc0ce 4613:e7f1cf9eeb96
15 #group = '' 15 #group = ''
16 16
17 # use '' for all interface or "1.2.3.4" for some specific IP 17 # use '' for all interface or "1.2.3.4" for some specific IP
18 #interface = 'localhost' 18 #interface = 'localhost'
19 19
20 # where the static data is served from: 20 # where the static data is served from - you can either use:
21 #docs = "/usr/share/moin/htdocs" 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
22 26
23 # tuning options: 27 # tuning options:
24 #serverClass = 'ThreadPoolServer' 28 #serverClass = 'ThreadPoolServer'
25 #threadLimit = 10 29 #threadLimit = 10
26 #requestQueueSize = 50 30 #requestQueueSize = 50