1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/farmconfig.py Sun Nov 25 19:00:45 2007 +0100
1.3 @@ -0,0 +1,176 @@
1.4 +# -*- coding: iso-8859-1 -*-
1.5 +# IMPORTANT! This encoding (charset) setting MUST be correct! If you live in a
1.6 +# western country and you don't know that you use utf-8, you probably want to
1.7 +# use iso-8859-1 (or some other iso charset). If you use utf-8 (a Unicode
1.8 +# encoding) you MUST use: coding: utf-8
1.9 +# That setting must match the encoding your editor uses when you modify the
1.10 +# settings below. If it does not, special non-ASCII chars will be wrong.
1.11 +
1.12 +"""
1.13 + MoinMoin - Configuration for a wiki farm
1.14 +
1.15 + If you run a single wiki only, you can keep the "wikis" list "as is"
1.16 + (it has a single rule mapping all requests to mywiki.py).
1.17 +
1.18 + Note that there are more config options than you'll find in
1.19 + the version of this file that is installed by default; see
1.20 + the module MoinMoin.multiconfig for a full list of names and their
1.21 + default values.
1.22 +
1.23 + Also, the URL http://moinmoin.wikiwikiweb.de/HelpOnConfiguration has
1.24 + a list of config options.
1.25 +"""
1.26 +
1.27 +
1.28 +# Wikis in your farm --------------------------------------------------
1.29 +
1.30 +# If you run multiple wikis, you need this list of pairs (wikiname, url
1.31 +# regular expression). moin processes that list and tries to match the
1.32 +# regular expression against the URL of this request - until it matches.
1.33 +# Then it loads the <wikiname>.py config for handling that request.
1.34 +
1.35 +# Important:
1.36 +# * the left part is the wikiname enclosed in double quotes
1.37 +# * the left part must be a valid python module name, so better use only
1.38 +# lower letters "a-z" and "_". Do not use blanks or "-" there!!!
1.39 +# * the right part is the url re, use r"..." for it
1.40 +# * the right part does NOT include "http://" nor "https://" at the beginning
1.41 +# * in the right part ".*" means "everything". Just "*" does not work like
1.42 +# for filenames on the shell / commandline, you must use ".*" as it is a RE.
1.43 +# * in the right part, "^" means "beginning" and "$" means "end"
1.44 +
1.45 +wikis = [
1.46 + # Standalone server needs the port e.g. localhost:8000
1.47 + # Twisted server can now use the port, too.
1.48 +
1.49 + # wikiname, url regular expression (no protocol)
1.50 + # ---------------------------------------------------------------
1.51 + ("ep2008", r".*"), # this is ok for a single wiki
1.52 +
1.53 + # for multiple wikis, do something like this:
1.54 + #("moinmoin", r"^moinmoin.wikiwikiweb.de/.*$"),
1.55 + #("moinmaster", r"^moinmaster.wikiwikiweb.de/.*$"),
1.56 +]
1.57 +
1.58 +
1.59 +# Common configuration for all wikis ----------------------------------
1.60 +
1.61 +# Everything that should be configured the same way should go here,
1.62 +# anything else that should be different should go to the single wiki's
1.63 +# config.
1.64 +# In that single wiki's config, we will use the class FarmConfig we define
1.65 +# below as the base config settings and only override what's different.
1.66 +#
1.67 +# In exactly the same way, we first include MoinMoin's Config Defaults here -
1.68 +# this is to get everything to sane defaults, so we need to change only what
1.69 +# we like to have different:
1.70 +
1.71 +from MoinMoin.multiconfig import DefaultConfig
1.72 +
1.73 +# Now we subclass this DefaultConfig. This means that we inherit every setting
1.74 +# from the DefaultConfig, except those we explicitely define different.
1.75 +
1.76 +class FarmConfig(DefaultConfig):
1.77 +
1.78 + # Critical setup ---------------------------------------------------
1.79 +
1.80 + # Misconfiguration here will render your wiki unusable. Check that
1.81 + # all directories are accessible by the web server or moin server.
1.82 +
1.83 + # If you encounter problems, try to set data_dir and data_underlay_dir
1.84 + # to absolute paths.
1.85 +
1.86 + # Where your mutable wiki pages are. You want to make regular
1.87 + # backups of this directory.
1.88 + #data_dir = './data/'
1.89 +
1.90 + # Where read-only system and help page are. You might want to share
1.91 + # this directory between several wikis. When you update MoinMoin,
1.92 + # you can safely replace the underlay directory with a new one. This
1.93 + # directory is part of MoinMoin distribution, you don't have to
1.94 + # backup it.
1.95 + #data_underlay_dir = './underlay/'
1.96 +
1.97 + # This must be '/wiki' for twisted and standalone. For CGI, it should
1.98 + # match your Apache Alias setting.
1.99 + url_prefix = '/wiki'
1.100 +
1.101 +
1.102 + # Security ----------------------------------------------------------
1.103 +
1.104 + # This is checked by some rather critical and potentially harmful actions,
1.105 + # like despam or PackageInstaller action:
1.106 + #superuser = [u"YourName", ]
1.107 +
1.108 + # IMPORTANT: grant yourself admin rights! replace YourName with
1.109 + # your user name. See HelpOnAccessControlLists for more help.
1.110 + # All acl_rights_xxx options must use unicode [Unicode]
1.111 + #acl_rights_before = u"YourName:read,write,delete,revert,admin"
1.112 +
1.113 + # Link spam protection for public wikis (uncomment to enable).
1.114 + # Needs a reliable internet connection.
1.115 + #from MoinMoin.util.antispam import SecurityPolicy
1.116 +
1.117 +
1.118 + # Mail --------------------------------------------------------------
1.119 +
1.120 + # Configure to enable subscribing to pages (disabled by default) or
1.121 + # sending forgotten passwords.
1.122 +
1.123 + # SMTP server, e.g. "mail.provider.com" (empty or None to disable mail)
1.124 + #mail_smarthost = ""
1.125 +
1.126 + # The return address, e.g u"Jürgen Wiki <noreply@mywiki.org>" [Unicode]
1.127 + #mail_from = u""
1.128 +
1.129 + # "user pwd" if you need to use SMTP AUTH
1.130 + #mail_login = ""
1.131 +
1.132 +
1.133 + # User interface ----------------------------------------------------
1.134 +
1.135 + # Add your wikis important pages at the end. It is not recommended to
1.136 + # remove the default links. Leave room for user links - don't use
1.137 + # more than 6 short items.
1.138 + # You MUST use Unicode strings here, but you need not use localized
1.139 + # page names for system and help pages, those will be used automatically
1.140 + # according to the user selected language. [Unicode]
1.141 + navi_bar = [
1.142 + # If you want to show your page_front_page here:
1.143 + #u'%(page_front_page)s',
1.144 + u'RecentChanges',
1.145 + u'FindPage',
1.146 + u'HelpContents',
1.147 + ]
1.148 +
1.149 + # The default theme anonymous or new users get
1.150 + theme_default = 'modern'
1.151 +
1.152 +
1.153 + # Language options --------------------------------------------------
1.154 +
1.155 + # See http://moinmoin.wikiwikiweb.de/ConfigMarket for configuration in
1.156 + # YOUR language that other people contributed.
1.157 +
1.158 + # The main wiki language, set the direction of the wiki pages
1.159 + language_default = 'en'
1.160 +
1.161 + # You must use Unicode strings here [Unicode]
1.162 + page_category_regex = u'^Category[A-Z]'
1.163 + page_dict_regex = u'[a-z]Dict$'
1.164 + page_group_regex = u'[a-z]Group$'
1.165 + page_template_regex = u'[a-z]Template$'
1.166 +
1.167 + # Content options ---------------------------------------------------
1.168 +
1.169 + # Show users hostnames in RecentChanges
1.170 + show_hosts = 1
1.171 +
1.172 + # Show the interwiki name (and link it to page_front_page) in the Theme,
1.173 + # nice for farm setups or when your logo does not show the wiki's name.
1.174 + show_interwiki = 1
1.175 + logo_string = u''
1.176 +
1.177 + # Enable graphical charts, requires gdchart.
1.178 + #chart_options = {'width': 600, 'height': 300}
1.179 +