changeset 3489:a3177f8745f9

more config snippets
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 07 Apr 2008 09:02:03 +0200
parents f3c50edd219c
children af3460a4cb79
files wiki/config/more_samples/auth_session_wikiconfig_snippet wiki/config/more_samples/mail_wikiconfig_snippet wiki/config/more_samples/security_wikiconfig_snippet wiki/config/more_samples/ui_wikiconfig_snippet wiki/config/more_samples/user_wikiconfig_snippet
diffstat 5 files changed, 252 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/wiki/config/more_samples/auth_session_wikiconfig_snippet	Mon Apr 07 09:02:03 2008 +0200
@@ -0,0 +1,24 @@
+    # This is a sample configuration snippet that shows moin's builtin auth and
+    # session configuration. See HelpOnSessions, HelpOnAuthentication and
+    # HelpOnConfiguration for more infos.
+
+    # authentication methods used (default shown, see also other snippets):
+    #from MoinMoin import auth as authmodule
+    #auth = [authmodule.MoinLogin()]
+
+    # auth methods that get a user into "Trusted" group:
+    #auth_methods_trusted = ['http', 'xmlrpc_applytoken']
+
+    # session cookie settings:
+    #cookie_domain = None # use '.domain.tld" for a farm with hosts in that domain
+    #cookie_path = None   # use '/wikifarm" for a farm with pathes below that path
+    #cookie_lifetime = 12 # 12 hours from now
+
+    # use this if you want sessions for anonymous users, too:
+    #anonymous_session_lifetime = 1 # default: disabled
+
+    # The default (ENABLED) password_checker will keep users from choosing too
+    # short or too easy passwords. If you don't like this and your site has
+    # rather low security requirements, feel free to DISABLE the checker by:
+    #password_checker = None # None means "don't do any password strength checks"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/wiki/config/more_samples/mail_wikiconfig_snippet	Mon Apr 07 09:02:03 2008 +0200
@@ -0,0 +1,34 @@
+    # This is a sample configuration snippet that shows how to configure email support.
+    # See HelpOnConfiguration/EmailSupport and HelpOnConfiguration for more infos.
+
+    # SENDING MAIL - e.g. for page subscribtions or sending of forgotten passwords.
+
+    # the "from:" address [Unicode]
+    mail_from = u"wiki <wiki@example.org>"
+
+    # a) using a SMTP server, e.g. "mail.provider.com" (None to disable mail)
+    mail_smarthost = "smtp.example.org"
+
+    # if you need to use SMTP AUTH at your mail_smarthost:
+    #mail_login = "smtp_username smtp_password"
+
+    # b) alternatively to using SMTP, you can use the sendmail commandline tool:
+    #mail_sendmail = "/usr/sbin/sendmail -t -i"
+
+    # preload user subscribed pages with this page list:
+    #subscribed_pages_default = []
+
+
+    # RECEIVING MAIL - send email to your wiki (defaults shown)
+    # Note: this just configures the mail importing xmlrpc functionionality
+    # within moin, you need some script called by your MDA (e.g. procmail)
+    # to DO the xmlrpc calls for each mail arriving for your wiki!
+    #actions_excluded = [] # it won't work if 'xmlrpc' is excluded!
+    #mail_import_secret = "foo" # a shared secret also known to the mail importer xmlrpc script
+    #mail_import_subpage_template = u"$from-$date-$subject" # used for mail import
+    #mail_import_pagename_search = ['subject', 'to', ] # where to look for target pagename (and in which order)
+    #mail_import_pagename_envelope = u"%s" # use u"+ %s/" to add "+ " and "/" automatically
+    #mail_import_pagename_regex = r'\[\[([^\]]*)\]\]' # how to find/extract the pagename from the subject
+    #mail_import_wiki_addrs = [] # the e-mail addresses for e-mails that should go into the wiki
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/wiki/config/more_samples/security_wikiconfig_snippet	Mon Apr 07 09:02:03 2008 +0200
@@ -0,0 +1,62 @@
+    # This is a sample configuration snippet that shows how to configure security
+    # features of moin, like superuser, ACLs and anti-spam / anti-abuse measures.
+
+    # This is checked by some rather critical and potentially harmful actions,
+    # like despam or PackageInstaller action:
+    #superuser = [u"YourName", ]
+
+    # IMPORTANT: grant yourself admin rights! replace YourName with
+    # your user name. See HelpOnAccessControlLists for more help.
+    #acl_rights_before = u"YourName:read,write,delete,revert,admin"
+    #acl_rights_default = u"Trusted:read,write,delete,revert Known:read,write,delete,revert All:read,write"
+    #acl_rights_after = u"" # most users don't need this
+    #acl_hierarchic = False # True to use hierarchical ACLs
+
+    #actions_excluded = ['xmlrpc'] # change this if you need xmlrpc or to forbid other actions
+
+    # Tracebacks are valuable for analyzing bugs / failures, but they can also
+    # give more information to web client than you would like, so feel free to
+    # disable showing them in the client's web browser:
+    #traceback_show = True # if True, tracebacks are displayed in the web browser
+    #traceback_log_dir = None # if set to a directory path, tracebacks are written to files there
+
+    # Avoid users filling your hard disk with attachments:
+    #unzip_single_file_size = 2.0 * 1000 ** 2
+    #unzip_attachments_space = 200.0 * 1000 ** 2
+    #unzip_attachments_count = 101 # 1 zip file + 100 files contained in it
+
+    # Link spam protection for public wikis (default is disabled!):
+    # a) TextChas (see HelpOnTextChas, strongly recommended!):
+    #textchas = None # a data structure with site-specific questions/answers
+    #textchas_disabled_group = None # e.g. u'NoTextChasGroup' if you are a member of this group, you don't get textchas
+    # b) BadContent antispam regex updates (recommended, needs a reliable internet connection):
+    #from MoinMoin.security.antispam import SecurityPolicy
+    #antispam_master_url = "http://master.moinmo.in/?action=xmlrpc2"
+
+    # Rate limit for requests (use = None to disable completely)
+    #surge_action_limits = { # allow max. <count> <action> requests per <dt> secs
+    #    # action: (count, dt)
+    #    'all': (30, 30),
+    #    'show': (30, 60),
+    #    'recall': (10, 120),
+    #    'raw': (20, 40),  # some people use this for css
+    #    'AttachFile': (90, 60),
+    #    'diff': (30, 60),
+    #    'fullsearch': (10, 120),
+    #    'edit': (30, 300), # can be lowered after making preview different from edit
+    #    'rss_rc': (1, 60),
+    #    'default': (30, 60),
+    #}
+    #surge_lockout_time = 3600 # secs you get locked out when you ignore warnings
+
+    # if nothing else helps, you can use this to deny some IPs:
+    #hosts_deny = []
+
+    # a regex of HTTP_USER_AGENTS that should be excluded from logging
+    # and receive a FORBIDDEN for anything except viewing a page
+    # list must not contain 'java' because of twikidraw wanting to save drawing uses this useragent
+    #ua_spiders = ('archiver|cfetch|charlotte|crawler|curl|gigabot|googlebot|heritrix|holmes|htdig|httrack|httpunit|'
+    #              'intelix|jeeves|larbin|leech|libwww-perl|linkbot|linkmap|linkwalk|litefinder|mercator|'
+    #              'microsoft.url.control|mirror| mj12bot|msnbot|msrbot|neomo|nutbot|omniexplorer|puf|robot|scooter|seekbot|'
+    #              'sherlock|slurp|sitecheck|snoopy|spider|teleport|twiceler|voilabot|voyager|webreaper|wget|yeti')
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/wiki/config/more_samples/ui_wikiconfig_snippet	Mon Apr 07 09:02:03 2008 +0200
@@ -0,0 +1,78 @@
+    # This is a sample configuration snippet that shows how to configure the
+    # user interface of moin (how moin looks like).
+
+    # Wiki logo. You can use an image, text or both. [Unicode]
+    # For no logo or text, use '' - the default is to show the sitename.
+    # See also url_prefix setting below!
+    #logo_string = u'<img src="/moin_static170/common/moinmoin.png" alt="MoinMoin Logo">'
+
+    # The default theme anonymous or new users get
+    #theme_default = 'modern'
+    #theme_force = False
+
+    page_front_page = u'HelpOnLanguages' # this will make people choose a sane config
+
+    # Add your wikis important pages at the end. It is not recommended to
+    # remove the default links.  Leave room for user links - don't use
+    # more than 6 short items.
+    # You MUST use Unicode strings here, but you need not use localized
+    # page names for system and help pages, those will be used automatically
+    # according to the user selected language. [Unicode]
+    navi_bar = [
+        # If you want to show your page_front_page here:
+        #u'%(page_front_page)s',
+        u'RecentChanges',
+        u'FindPage',
+        u'HelpContents',
+    ]
+
+    #edit_bar = ['Edit', 'Comments', 'Discussion', 'Info', 'Subscribe', 'Quicklink', 'Attachments', 'ActionsMenu']
+    #editor_default = 'text' # which editor is called when nothing is specified
+    #editor_force = False # force using the default editor
+    #editor_ui = 'freechoice' # which editor links are shown on user interface
+    #edit_locking = 'warn 10' # None, 'warn <timeout mins>', 'lock <timeout mins>'
+    #edit_rows = 20
+
+    #supplementation_page = False # use supplementation pages (show a link in the edit_bar)?
+    #supplementation_page_name = u'Discussion' # name of suppl. subpage
+    #supplementation_page_template = u'DiscussionTemplate' # name of template used to create suppl. pages
+
+    #page_license_enabled = False
+    #page_license_page = u'WikiLicense'
+
+    #trail_size = 5 # number of recently visited pagenames shown in the trail display
+
+    #search_results_per_page = 10
+
+    # for info/history action:
+    #history_count = (100, 200) # (default_revisions_shown, max_revisions_shown)
+
+    #show_hosts = True # show hostnames on RecentChanges / info/history action
+    #show_interwiki = False # show our interwiki name (usually in front of the page name)
+    #show_names = True # show editor names on RecentChanges / info/history action
+    #show_section_numbers = 0 # enumerate sections (headlines) by default?
+    #show_timings = False # show some timing stats (usually in the footer)
+    #show_version = False # show moin version info / (C) (depends on theme)
+
+    # time/date formats used (defaults shown):
+    #changed_time_fmt = '%H:%M'
+    #date_fmt = '%Y-%m-%d'
+    #datetime_fmt = '%Y-%m-%d %H:%M:%S'
+
+    #html_pagetitle = None
+
+    #stylesheets = [] # list of tuples (media, csshref) to insert after theme css, before user css
+
+    # <head> fragments:
+    #html_head = ''
+    #html_head_queries = '''<meta name="robots" content="noindex,nofollow">\n'''
+    #html_head_posts   = '''<meta name="robots" content="noindex,nofollow">\n'''
+    #html_head_index   = '''<meta name="robots" content="index,follow">\n'''
+    #html_head_normal  = '''<meta name="robots" content="index,nofollow">\n'''
+
+    # you can put some pieces of html at specific places into the theme output:
+    #page_header1 = ''
+    #page_header2 = ''
+    #page_footer1 = ''
+    #page_footer2 = ''
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/wiki/config/more_samples/user_wikiconfig_snippet	Mon Apr 07 09:02:03 2008 +0200
@@ -0,0 +1,54 @@
+    # This is a sample configuration snippet that shows how to configure user
+    # and user preferences related functionality.
+
+    #userprefs_disabled = [] # allow disabling certain userpreferences plugins
+
+    #user_autocreate = False # auto-create user profiles? needs support in auth method!
+
+    #user_homewiki = 'Self' # interwiki name for where user homepages are located
+
+    #password_checker = None
+    #user_email_unique = True # do we check whether a user's email is unique?
+    #user_jid_unique = True # do we check whether a user's email is unique?
+
+    #tz_offset = 0.0 # default time zone offset in hours from UTC
+
+    #quicklinks_default = [] # preload user quicklinks with this page list
+    #subscribed_pages_default = [] # preload user subscribed pages with this page list
+
+    #user_checkbox_defaults = {'mailto_author': 0,
+    #                          'edit_on_doubleclick': 0,
+    #                          'remember_last_visit': 0,
+    #                          'show_comments': 0,
+    #                          'show_nonexist_qm': 0, # nonexist_qm
+    #                          'show_page_trail': 1,
+    #                          'show_toolbar': 1,
+    #                          'show_topbottom': 0,
+    #                          'show_fancy_diff': 1,
+    #                          'wikiname_add_spaces': 0,
+    #                          'remember_me': 1,
+    #                         }
+
+    # don't let the user change those
+    #user_checkbox_disable = [] # ['disabled', ]
+
+    # remove those checkboxes:
+    #user_checkbox_remove = [] # ['remember_me', 'disabled', ]
+
+    #user_form_defaults = {# key: default - do NOT remove keys from here!
+    #    'name': '',
+    #    'aliasname': '',
+    #    'password': '',
+    #    'password2': '',
+    #    'email': '',
+    #    'jid': '',
+    #    'css_url': '',
+    #    'edit_rows': "20",
+    #}
+
+    # don't let the user change those, but show them:
+    #user_form_disable = [] # ['name', 'aliasname', 'email', ]
+
+    # remove those completely:
+    #user_form_remove = [] # ['password', 'password2', ]
+