comparison wiki/server/mointwisted.py @ 0:77665d8e2254

tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0 (automatically generated log message) imported from: moin--main--1.5--base-0
author Thomas Waldmann <tw-public@gmx.de>
date Thu, 22 Sep 2005 15:09:50 +0000
parents
children cf52f97a5857
comparison
equal deleted inserted replaced
-1:000000000000 0:77665d8e2254
1 """
2 twisted.web based wiki server
3
4 Run this server with mointwisted script on Linux or Mac OS X, or
5 mointwisted.cmd on Windows.
6
7 @copyright: 2004-2005 Thomas Waldmann, Oliver Graf, Nir Soffer
8 @license: GNU GPL, see COPYING for details.
9 """
10
11 # System path configuration
12
13 import sys
14
15 # Path of the directory where wikiconfig.py is located.
16 # YOU NEED TO CHANGE THIS TO MATCH YOUR SETUP.
17 sys.path.insert(0, '/path/to/wikiconfig')
18
19 # Path to MoinMoin package, needed if you installed with --prefix=PREFIX
20 # or if you did not use setup.py
21 ## sys.path.insert(0, 'PREFIX/lib/python2.3/site-packages')
22
23 # Path to the directory where farmconfig is located (if different).
24 ## sys.path.insert(0, '/path/to/farmconfig')
25
26
27 from MoinMoin.server.twistedmoin import TwistedConfig, makeApp
28
29
30 class Config(TwistedConfig):
31
32 # Server name
33 # Used to create .log, .pid and .prof files
34 name = 'mointwisted'
35
36 # Path to moin shared files (default '/usr/share/moin/wiki/htdocs')
37 docs = '/usr/share/moin/htdocs'
38
39 # The server will run with as this user and group (default 'www-data')
40 user = 'www-data'
41 group = 'www-data'
42
43 # Port (default 8080)
44 # To serve privileged port under 1024 you will have to run as root
45 port = 8080
46
47 # Interfaces (default [''])
48 # The interfaces the server will listen to.
49 # [''] - listen to all interfaces defined on the server
50 # ['red.wikicolors.org', 'blue.wikicolors.org'] - listen to some
51 # If '' is in the list, other ignored.
52 interfaces = ['']
53
54 # How many threads to use (default 10, max 20)
55 # The more threads you use, the more memory moin uses. All thread
56 # use one CPU, and will not run faster, but might be more responsive
57 # on a very busy server.
58 threads = 10
59
60 # Set logfile name (default commented)
61 # This is the *Apache compatible* log file, not the twisted-style logfile.
62 # Leaving this as None will have no Apache compatible log file. Apache
63 # compatible logfiles are useful because there are quite a few programs
64 # which analyze them and display statistics.
65 ## logPath = 'mointwisted.log'
66
67 # Memory profile (default commented)
68 # Useful only if you are a developer or interested in moin memory usage
69 ## from MoinMoin.util.profile import TwistedProfiler
70 ## memoryProfile = TwistedProfiler('mointwisted',
71 ## requestsPerSample=100,
72 ## collect=0)
73
74 # Hotshot profile (default commented)
75 # Not compatible with threads.
76 ## hotshotProfile = name + '.prof'
77
78
79 # Create the application
80 application = makeApp(Config)
81