comparison wiki/config/wikifarm/farmconfig.py @ 4624:fb5abe50c6d2

wikiconfig/farmconfig: improve values for data(_underlay)_dir, make logo work automatically, fix wiki regex samples in farmconfig
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 01 Mar 2009 21:57:08 +0100
parents 173c67aff3d6
children 9a26c69ccf5a
comparison
equal deleted inserted replaced
4623:16ee781ef3ad 4624:fb5abe50c6d2
38 # * in the right part ".*" means "everything". Just "*" does not work like 38 # * in the right part ".*" means "everything". Just "*" does not work like
39 # for filenames on the shell / commandline, you must use ".*" as it is a RE. 39 # for filenames on the shell / commandline, you must use ".*" as it is a RE.
40 # * in the right part, "^" means "beginning" and "$" means "end" 40 # * in the right part, "^" means "beginning" and "$" means "end"
41 41
42 wikis = [ 42 wikis = [
43 # Standalone server needs the port e.g. localhost:8000
44 # Twisted server can now use the port, too.
45 43
46 # wikiname, url regular expression (no protocol) 44 # wikiname, url regular expression
47 # --------------------------------------------------------------- 45 # ---------------------------------------------------------------
48 ("mywiki", r".*"), # this is ok for a single wiki 46 ("mywiki", r".*"), # this is ok for a single wiki
49 47
50 # for multiple wikis, do something like this: 48 # for multiple wikis, do something like this:
51 #("moinmoin", r"^moinmo.in/.*$"), 49 #("wiki1", r"^http://wiki1\.example\.org/.*$"),
52 #("moinmaster", r"^master.moinmo.in/.*$"), 50 #("wiki2", r"^http://wiki2\.example\.org/.*$"),
53 ] 51 ]
54 52
55 53
56 # Common configuration for all wikis ---------------------------------- 54 # Common configuration for all wikis ----------------------------------
57 55
63 # 61 #
64 # In exactly the same way, we first include MoinMoin's Config Defaults here - 62 # In exactly the same way, we first include MoinMoin's Config Defaults here -
65 # this is to get everything to sane defaults, so we need to change only what 63 # this is to get everything to sane defaults, so we need to change only what
66 # we like to have different: 64 # we like to have different:
67 65
68 from MoinMoin.config.multiconfig import DefaultConfig 66 from MoinMoin.config import multiconfig, url_prefix_static
69 67
70 # Now we subclass this DefaultConfig. This means that we inherit every setting 68 # Now we subclass this DefaultConfig. This means that we inherit every setting
71 # from the DefaultConfig, except those we explicitely define different. 69 # from the DefaultConfig, except those we explicitely define different.
72 70
73 class FarmConfig(DefaultConfig): 71 class FarmConfig(multiconfig.DefaultConfig):
74 72
75 # Critical setup --------------------------------------------------- 73 # Critical setup ---------------------------------------------------
76 74
77 # Misconfiguration here will render your wiki unusable. Check that
78 # all directories are accessible by the web server or moin server.
79
80 # If you encounter problems, try to set data_dir and data_underlay_dir
81 # to absolute paths.
82
83 # Where your mutable wiki pages are. You want to make regular
84 # backups of this directory.
85 data_dir = './data/'
86
87 # Where read-only system and help page are. You might want to share
88 # this directory between several wikis. When you update MoinMoin,
89 # you can safely replace the underlay directory with a new one. This
90 # directory is part of MoinMoin distribution, you don't have to
91 # backup it.
92 data_underlay_dir = './underlay/'
93
94 # The URL prefix we use to access the static stuff (img, css, js). 75 # The URL prefix we use to access the static stuff (img, css, js).
95 # NOT touching this is maybe the best way to handle this setting as moin 76 # Note: moin runs a static file server at url_prefix_static path (relative
96 # uses a good internal default (something like '/moin_static190' for moin 77 # to the script url).
97 # version 1.9.0). 78 # If you run your wiki script at the root of your site (/), just do NOT
98 # For Twisted and standalone server, the default will automatically work. 79 # use this setting and it will automatically work.
99 # For others, you should make a matching server config (e.g. an Apache 80 # If you run your wiki script at /mywiki, you need to use this:
100 # Alias definition pointing to the directory with the static stuff). 81 #url_prefix_static = '/mywiki' + url_prefix_static
101 #url_prefix_static = '/moin_static190' 82 # If you need different url_prefix_static setups for your wikis,
102 83 # you'll have to do it in each wiki's config.
103 84
104 # Security ---------------------------------------------------------- 85 # Security ----------------------------------------------------------
105 86
106 # This is checked by some rather critical and potentially harmful actions, 87 # This is checked by some rather critical and potentially harmful actions,
107 # like despam or PackageInstaller action: 88 # like despam or PackageInstaller action: