/shabti/templates/moinmoin/data/moin/config/wikifarm/farmconfig.py

https://bitbucket.org/gawel/shabti · Python · 185 lines · 32 code · 45 blank · 108 comment · 0 complexity · 6b5bac095dd17eb1c0c61a8bd2ec01a5 MD5 · raw file

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