mywiki.conf
Alias /moin_static181/ /srv/share/moin/htdocs/ ScriptAlias /mywiki /srv/share/moin/mywiki/moin.cgi <Directory "/srv/share/moin/htdocs"> AllowOverride None Order allow,deny Allow from localhost </Directory> <Directory "/srv/share/moin/mywiki"> AuthType Digest AuthName "MyWiki" AuthDigestProvider file AuthUserFile /var/auth/users Require valid-user AllowOverride None Order allow,deny Allow from localhost </Directory>
wikiconfig.py
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 single wiki
11
12 If you run a single wiki only, you can omit the farmconfig.py config
13 file and just use wikiconfig.py - it will be used for every request
14 we get in that case.
15
16 Note that there are more config options than you'll find in
17 the version of this file that is installed by default; see
18 the module MoinMoin.config.multiconfig for a full list of names and their
19 default values.
20
21 Also, the URL http://moinmo.in/HelpOnConfiguration has
22 a list of config options.
23
24 ** Please do not use this file for a wiki farm. Use the sample file
25 from the wikifarm directory instead! **
26 """
27
28 from MoinMoin.config.multiconfig import DefaultConfig
29
30
31 class Config(DefaultConfig):
32
33 # Wiki identity ----------------------------------------------------
34
35 # Site name, used by default for wiki name-logo [Unicode]
36 sitename = u'Untitled Wiki'
37
38 # Wiki logo. You can use an image, text or both. [Unicode]
39 # For no logo or text, use '' - the default is to show the sitename.
40 # See also url_prefix setting below!
41 logo_string = u'<img src="/moin_static180/common/moinmoin.png" alt="MoinMoin Logo">'
42
43 # name of entry page / front page [Unicode], choose one of those:
44
45 # a) if most wiki content is in a single language
46 #page_front_page = u"MyStartingPage"
47
48 # b) if wiki content is maintained in many languages
49 #page_front_page = u"FrontPage"
50
51 # The interwiki name used in interwiki links
52 #interwikiname = 'UntitledWiki'
53 # Show the interwiki name (and link it to page_front_page) in the Theme,
54 # nice for farm setups or when your logo does not show the wiki's name.
55 #show_interwiki = 1
56
57
58 # Critical setup ---------------------------------------------------
59
60 # Misconfiguration here will render your wiki unusable. Check that
61 # all directories are accessible by the web server or moin server.
62
63 # If you encounter problems, try to set data_dir and data_underlay_dir
64 # to absolute paths.
65
66 # Where your mutable wiki pages are. You want to make regular
67 # backups of this directory.
68 data_dir = '/srv/share/moin/mywiki/data/'
69
70 # Where read-only system and help page are. You might want to share
71 # this directory between several wikis. When you update MoinMoin,
72 # you can safely replace the underlay directory with a new one. This
73 # directory is part of MoinMoin distribution, you don't have to
74 # backup it.
75 data_underlay_dir = '/srv/share/moin/underlay/'
76
77 # The URL prefix we use to access the static stuff (img, css, js).
78 # NOT touching this is maybe the best way to handle this setting as moin
79 # uses a good internal default (something like '/moin_static180' for moin
80 # version 1.8.0).
81 # For Twisted and standalone server, the default will automatically work.
82 # For others, you should make a matching server config (e.g. an Apache
83 # Alias definition pointing to the directory with the static stuff).
84 #url_prefix_static = '/moin_static180'
85
86
87 # Security ----------------------------------------------------------
88
89 # This is checked by some rather critical and potentially harmful actions,
90 # like despam or PackageInstaller action:
91 superuser = []
92
93 # IMPORTANT: grant yourself admin rights! replace YourName with
94 # your user name. See HelpOnAccessControlLists for more help.
95 # All acl_rights_xxx options must use unicode [Unicode]
96 #acl_rights_before = u"YourName:read,write,delete,revert,admin"
97
98 # The default (ENABLED) password_checker will keep users from choosing too
99 # short or too easy passwords. If you don't like this and your site has
100 # rather low security requirements, feel free to DISABLE the checker by:
101 #password_checker = None # None means "don't do any password strength checks"
102
103 # Link spam protection for public wikis (Uncomment to enable)
104 # Needs a reliable internet connection.
105 #from MoinMoin.security.antispam import SecurityPolicy
106
107
108 # Mail --------------------------------------------------------------
109
110 # Configure to enable subscribing to pages (disabled by default)
111 # or sending forgotten passwords.
112
113 # SMTP server, e.g. "mail.provider.com" (None to disable mail)
114 mail_sendmail = "/usr/sbin/sendmail -t -i"
115
116 # The return address, e.g u"Jürgen Wiki <noreply@mywiki.org>" [Unicode]
117 mail_from = u"MyWiki"
118
119 # "user pwd" if you need to use SMTP AUTH
120 #mail_login = ""
121
122
123 # User interface ----------------------------------------------------
124
125 # Add your wikis important pages at the end. It is not recommended to
126 # remove the default links. Leave room for user links - don't use
127 # more than 6 short items.
128 # You MUST use Unicode strings here, but you need not use localized
129 # page names for system and help pages, those will be used automatically
130 # according to the user selected language. [Unicode]
131 navi_bar = [
132 # If you want to show your page_front_page here:
133 #u'%(page_front_page)s',
134 u'RecentChanges',
135 u'FindPage',
136 u'HelpContents',
137 ]
138
139 # The default theme anonymous or new users get
140 theme_default = 'modern'
141
142
143 # Language options --------------------------------------------------
144
145 # See http://moinmo.in/ConfigMarket for configuration in
146 # YOUR language that other people contributed.
147
148 # The main wiki language, set the direction of the wiki pages
149 language_default = 'en'
150
151 # the following regexes should match the complete name when used in free text
152 # the group 'all' shall match all, while the group 'key' shall match the key only
153 # e.g. CategoryFoo -> group 'all' == CategoryFoo, group 'key' == Foo
154 # moin's code will add ^ / $ at beginning / end when needed
155 # You must use Unicode strings here [Unicode]
156 page_category_regex = ur'(?P<all>Category(?P<key>(?!Template)\S+))'
157 page_dict_regex = ur'(?P<all>(?P<key>\S+)Dict)'
158 page_group_regex = ur'(?P<all>(?P<key>\S+)Group)'
159 page_template_regex = ur'(?P<all>(?P<key>\S+)Template)'
160
161 # Content options ---------------------------------------------------
162
163 # Show users hostnames in RecentChanges
164 show_hosts = 1
165
166 # Enable graphical charts, requires gdchart.
167 #chart_options = {'width': 600, 'height': 300}
168
169 from MoinMoin.auth.http import HTTPAuth
170 auth = [HTTPAuth(autocreate=True)]