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