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