annotate wiki/config/wikifarm/farmconfig.py @ 4468:fad2936d33a7 1.8.1

added dummy mig script for 1.8.1, bumped version number
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 24 Dec 2008 16:32:46 +0100
parents 415cbfc3817b
children 331686d6b068 bccf475c18d7
rev   line source
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
1 # -*- coding: iso-8859-1 -*-
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
2 # IMPORTANT! This encoding (charset) setting MUST be correct! If you live in a
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
3 # western country and you don't know that you use utf-8, you probably want to
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
4 # use iso-8859-1 (or some other iso charset). If you use utf-8 (a Unicode
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
5 # encoding) you MUST use: coding: utf-8
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
6 # That setting must match the encoding your editor uses when you modify the
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
7 # settings below. If it does not, special non-ASCII chars will be wrong.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
8
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
9 """
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
10 MoinMoin - Configuration for a wiki farm
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
11
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 351
diff changeset
12 If you run a single wiki only, you can keep the "wikis" list "as is"
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 351
diff changeset
13 (it has a single rule mapping all requests to mywiki.py).
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
14
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
15 Note that there are more config options than you'll find in
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
16 the version of this file that is installed by default; see
1011
58f5af49cd03 move config and multiconfig to config/ package, see HINT in CHANGES
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 746
diff changeset
17 the module MoinMoin.config.multiconfig for a full list of names and their
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
18 default values.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
19
3115
cd6cfc715261 replace wikiwikiweb.de by moinmo.in, replace contact Juergen Hermann by Thomas Waldmann, cleanup wikiconfig (ported from 1.6)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3096
diff changeset
20 Also, the URL http://moinmo.in/HelpOnConfiguration has
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
21 a list of config options.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
22 """
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
23
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
24
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
25 # Wikis in your farm --------------------------------------------------
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
26
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
27 # If you run multiple wikis, you need this list of pairs (wikiname, url
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
28 # regular expression). moin processes that list and tries to match the
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
29 # regular expression against the URL of this request - until it matches.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
30 # Then it loads the <wikiname>.py config for handling that request.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
31
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
32 # Important:
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
33 # * the left part is the wikiname enclosed in double quotes
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
34 # * the left part must be a valid python module name, so better use only
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
35 # lower letters "a-z" and "_". Do not use blanks or "-" there!!!
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
36 # * the right part is the url re, use r"..." for it
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
37 # * the right part does NOT include "http://" nor "https://" at the beginning
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
38 # * in the right part ".*" means "everything". Just "*" does not work like
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
39 # for filenames on the shell / commandline, you must use ".*" as it is a RE.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
40 # * in the right part, "^" means "beginning" and "$" means "end"
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
41
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
42 wikis = [
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
43 # Standalone server needs the port e.g. localhost:8000
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
44 # Twisted server can now use the port, too.
1011
58f5af49cd03 move config and multiconfig to config/ package, see HINT in CHANGES
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 746
diff changeset
45
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 351
diff changeset
46 # wikiname, url regular expression (no protocol)
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 351
diff changeset
47 # ---------------------------------------------------------------
1011
58f5af49cd03 move config and multiconfig to config/ package, see HINT in CHANGES
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 746
diff changeset
48 ("mywiki", r".*"), # this is ok for a single wiki
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 351
diff changeset
49
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 351
diff changeset
50 # for multiple wikis, do something like this:
3115
cd6cfc715261 replace wikiwikiweb.de by moinmo.in, replace contact Juergen Hermann by Thomas Waldmann, cleanup wikiconfig (ported from 1.6)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3096
diff changeset
51 #("moinmoin", r"^moinmo.in/.*$"),
cd6cfc715261 replace wikiwikiweb.de by moinmo.in, replace contact Juergen Hermann by Thomas Waldmann, cleanup wikiconfig (ported from 1.6)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3096
diff changeset
52 #("moinmaster", r"^master.moinmo.in/.*$"),
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
53 ]
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
54
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
55
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
56 # Common configuration for all wikis ----------------------------------
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
57
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
58 # Everything that should be configured the same way should go here,
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
59 # anything else that should be different should go to the single wiki's
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
60 # config.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
61 # In that single wiki's config, we will use the class FarmConfig we define
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
62 # below as the base config settings and only override what's different.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
63 #
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
64 # In exactly the same way, we first include MoinMoin's Config Defaults here -
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
65 # this is to get everything to sane defaults, so we need to change only what
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
66 # we like to have different:
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
67
1011
58f5af49cd03 move config and multiconfig to config/ package, see HINT in CHANGES
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 746
diff changeset
68 from MoinMoin.config.multiconfig import DefaultConfig
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
69
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
70 # Now we subclass this DefaultConfig. This means that we inherit every setting
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
71 # from the DefaultConfig, except those we explicitely define different.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
72
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
73 class FarmConfig(DefaultConfig):
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
74
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
75 # Critical setup ---------------------------------------------------
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
76
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
77 # Misconfiguration here will render your wiki unusable. Check that
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
78 # all directories are accessible by the web server or moin server.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
79
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
80 # If you encounter problems, try to set data_dir and data_underlay_dir
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
81 # to absolute paths.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
82
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
83 # Where your mutable wiki pages are. You want to make regular
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
84 # backups of this directory.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
85 data_dir = './data/'
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
86
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
87 # Where read-only system and help page are. You might want to share
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
88 # this directory between several wikis. When you update MoinMoin,
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
89 # you can safely replace the underlay directory with a new one. This
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
90 # directory is part of MoinMoin distribution, you don't have to
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
91 # backup it.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
92 data_underlay_dir = './underlay/'
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
93
1582
f37b49b6313d url_prefix_static: move default to MoinMoin.config, use matching defaults for Twisted/standalone
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1011
diff changeset
94 # The URL prefix we use to access the static stuff (img, css, js).
f37b49b6313d url_prefix_static: move default to MoinMoin.config, use matching defaults for Twisted/standalone
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1011
diff changeset
95 # NOT touching this is maybe the best way to handle this setting as moin
4468
fad2936d33a7 added dummy mig script for 1.8.1, bumped version number
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4457
diff changeset
96 # uses a good internal default (something like '/moin_static181' for moin
fad2936d33a7 added dummy mig script for 1.8.1, bumped version number
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4457
diff changeset
97 # version 1.8.1).
1582
f37b49b6313d url_prefix_static: move default to MoinMoin.config, use matching defaults for Twisted/standalone
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1011
diff changeset
98 # For Twisted and standalone server, the default will automatically work.
f37b49b6313d url_prefix_static: move default to MoinMoin.config, use matching defaults for Twisted/standalone
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1011
diff changeset
99 # For others, you should make a matching server config (e.g. an Apache
f37b49b6313d url_prefix_static: move default to MoinMoin.config, use matching defaults for Twisted/standalone
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1011
diff changeset
100 # Alias definition pointing to the directory with the static stuff).
4468
fad2936d33a7 added dummy mig script for 1.8.1, bumped version number
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4457
diff changeset
101 #url_prefix_static = '/moin_static181'
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 351
diff changeset
102
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
103
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
104 # Security ----------------------------------------------------------
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
105
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
106 # This is checked by some rather critical and potentially harmful actions,
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
107 # like despam or PackageInstaller action:
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
108 #superuser = [u"YourName", ]
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 351
diff changeset
109
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
110 # IMPORTANT: grant yourself admin rights! replace YourName with
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
111 # your user name. See HelpOnAccessControlLists for more help.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
112 # All acl_rights_xxx options must use unicode [Unicode]
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
113 #acl_rights_before = u"YourName:read,write,delete,revert,admin"
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 351
diff changeset
114
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
115 # Link spam protection for public wikis (uncomment to enable).
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
116 # Needs a reliable internet connection.
746
0d3e9b79dde3 moved SecurityPolicy stuff to security/*
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 426
diff changeset
117 #from MoinMoin.security.antispam import SecurityPolicy
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
118
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
119
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
120 # Mail --------------------------------------------------------------
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 351
diff changeset
121
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
122 # Configure to enable subscribing to pages (disabled by default) or
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
123 # sending forgotten passwords.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
124
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
125 # SMTP server, e.g. "mail.provider.com" (empty or None to disable mail)
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
126 #mail_smarthost = ""
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
127
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
128 # The return address, e.g u"Jürgen Wiki <noreply@mywiki.org>" [Unicode]
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
129 #mail_from = u""
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
130
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
131 # "user pwd" if you need to use SMTP AUTH
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
132 #mail_login = ""
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
133
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
134
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
135 # User interface ----------------------------------------------------
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 351
diff changeset
136
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
137 # Add your wikis important pages at the end. It is not recommended to
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
138 # remove the default links. Leave room for user links - don't use
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
139 # more than 6 short items.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
140 # You MUST use Unicode strings here, but you need not use localized
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
141 # page names for system and help pages, those will be used automatically
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
142 # according to the user selected language. [Unicode]
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
143 navi_bar = [
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
144 # If you want to show your page_front_page here:
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
145 #u'%(page_front_page)s',
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
146 u'RecentChanges',
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
147 u'FindPage',
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
148 u'HelpContents',
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
149 ]
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
150
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
151 # The default theme anonymous or new users get
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
152 theme_default = 'modern'
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 351
diff changeset
153
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
154
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
155 # Language options --------------------------------------------------
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
156
3115
cd6cfc715261 replace wikiwikiweb.de by moinmo.in, replace contact Juergen Hermann by Thomas Waldmann, cleanup wikiconfig (ported from 1.6)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3096
diff changeset
157 # See http://moinmo.in/ConfigMarket for configuration in
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
158 # YOUR language that other people contributed.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
159
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
160 # The main wiki language, set the direction of the wiki pages
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
161 language_default = 'en'
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
162
3602
3b265efc5eb2 fix sample configs to use new page_*_regex defaults
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3115
diff changeset
163 # the following regexes should match the complete name when used in free text
3b265efc5eb2 fix sample configs to use new page_*_regex defaults
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3115
diff changeset
164 # the group 'all' shall match all, while the group 'key' shall match the key only
3b265efc5eb2 fix sample configs to use new page_*_regex defaults
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3115
diff changeset
165 # e.g. CategoryFoo -> group 'all' == CategoryFoo, group 'key' == Foo
3b265efc5eb2 fix sample configs to use new page_*_regex defaults
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3115
diff changeset
166 # moin's code will add ^ / $ at beginning / end when needed
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
167 # You must use Unicode strings here [Unicode]
3602
3b265efc5eb2 fix sample configs to use new page_*_regex defaults
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3115
diff changeset
168 page_category_regex = ur'(?P<all>Category(?P<key>\S+))'
3b265efc5eb2 fix sample configs to use new page_*_regex defaults
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3115
diff changeset
169 page_dict_regex = ur'(?P<all>(?P<key>\S+)Dict)'
3b265efc5eb2 fix sample configs to use new page_*_regex defaults
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3115
diff changeset
170 page_group_regex = ur'(?P<all>(?P<key>\S+)Group)'
3b265efc5eb2 fix sample configs to use new page_*_regex defaults
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3115
diff changeset
171 page_template_regex = ur'(?P<all>(?P<key>\S+)Template)'
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
172
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
173 # Content options ---------------------------------------------------
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
174
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
175 # Show users hostnames in RecentChanges
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
176 show_hosts = 1
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
177
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
178 # Show the interwiki name (and link it to page_front_page) in the Theme,
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
179 # nice for farm setups or when your logo does not show the wiki's name.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
180 show_interwiki = 1
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
181 logo_string = u''
426
3e7fa99247cd make farmconfig samples easier to use for a single wiki, too
Thomas Waldmann <tw@waldmann-edv.de>
parents: 351
diff changeset
182
351
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
183 # Enable graphical charts, requires gdchart.
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
184 #chart_options = {'width': 600, 'height': 300}
1cd95525de8b ?Moved farm config files into subdirectory called wikifarm.
Alexander Schremmer <alex@alexanderweb.de.tla>
parents:
diff changeset
185