conf.j2 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. # gitit wiki configuration file
  2. address: 127.0.0.1
  3. port: 55001
  4. # sets the port on which the web server will run.
  5. wiki-title: {{gitit_wiki_title}}
  6. # the title of the wiki.
  7. repository-type: Git
  8. # specifies the type of repository used for wiki content.
  9. # Options are Git, Darcs, and Mercurial.
  10. repository-path: wikidata
  11. # specifies the path of the repository directory. If it does not
  12. # exist, gitit will create it on startup.
  13. require-authentication: modify
  14. # if 'none', login is never required, and pages can be edited anonymously.
  15. # if 'modify', login is required to modify the wiki (edit, add, delete
  16. # pages, upload files).
  17. # if 'read', login is required to see any wiki pages.
  18. authentication-method: form
  19. # 'form' means that users will be logged in and registered
  20. # using forms in the gitit web interface. 'http' means
  21. # that gitit will assume that HTTP authentication is in
  22. # place and take the logged in username from the "Authorization"
  23. # field of the HTTP request header (in addition,
  24. # the login/logout and registration links will be
  25. # suppressed). 'generic' means that gitit will assume that
  26. # some form of authentication is in place that directly
  27. # sets REMOTE_USER to the name of the authenticated user
  28. # (e.g. mod_auth_cas on apache). 'rpx' means that gitit
  29. # will attempt to log in through https://rpxnow.com.
  30. # This requires that 'rpx-domain', 'rpx-key', and 'base-url'
  31. # be set below, and that 'curl' be in the system path.
  32. user-file: gitit-users
  33. # specifies the path of the file containing user login information.
  34. # If it does not exist, gitit will create it (with an empty user list).
  35. # This file is not used if 'http' is selected for authentication-method.
  36. session-timeout: 60
  37. # number of minutes of inactivity before a session expires.
  38. static-dir: wikidata/_NOWIKI/static
  39. # specifies the path of the static directory (containing javascript,
  40. # css, and images). If it does not exist, gitit will create it
  41. # and populate it with required scripts, stylesheets, and images.
  42. default-page-type: Markdown
  43. # specifies the type of markup used to interpret pages in the wiki.
  44. # Possible values are Markdown, RST, LaTeX, HTML, Markdown+LHS, RST+LHS,
  45. # and LaTeX+LHS. (The +LHS variants treat the input as
  46. # literate Haskell. See pandoc's documentation for more details.) If
  47. # Markdown is selected, pandoc's syntax extensions (for footnotes,
  48. # delimited code blocks, etc.) will be enabled. Note that pandoc's
  49. # reStructuredText parser is not complete, so some pages may not be
  50. # rendered correctly if RST is selected. The same goes for LaTeX and
  51. # HTML.
  52. math: MathML
  53. # specifies how LaTeX math is to be displayed. Possible values
  54. # are MathML, raw, mathjax, jsMath, and google. If mathml is selected,
  55. # gitit will convert LaTeX math to MathML and link in a script,
  56. # MathMLinHTML.js, that allows the MathML to be seen in Gecko browsers, IE +
  57. # mathplayer, and Opera. In other browsers you may get a jumble of characters.
  58. # If raw is selected, the LaTeX math will be displayed as raw LaTeX math.
  59. # If mathjax is selected, gitit will link to the remote mathjax script.
  60. # If jsMath is selected, gitit will link to the script /js/jsMath/easy/load.js,
  61. # and will assume that jsMath has been installed into the js/jsMath directory.
  62. # This is the most portable solution. If google is selected, the google chart
  63. # API is called to render the formula as an image. This requires a connection
  64. # to google, and might raise a technical or a privacy problem.
  65. show-lhs-bird-tracks: no
  66. # specifies whether to show Haskell code blocks in "bird style",
  67. # with "> " at the beginning of each line.
  68. templates-dir: wikidata/_NOWIKI/templates
  69. # specifies the path of the directory containing page templates.
  70. # If it does not exist, gitit will create it with default templates.
  71. # Users may wish to edit the templates to customize the appearance of
  72. # their wiki. The template files are HStringTemplate templates.
  73. # Variables to be interpolated appear between $'s. Literal $'s must be
  74. # backslash-escaped.
  75. log-file: gitit.log
  76. # specifies the path of gitit's log file. If it does not exist,
  77. # gitit will create it. The log is in Apache combined log format.
  78. log-level: ERROR
  79. # determines how much information is logged.
  80. # Possible values (from most to least verbose) are DEBUG, INFO,
  81. # NOTICE, WARNING, ERROR, CRITICAL, ALERT, EMERGENCY.
  82. front-page: Front Page
  83. # specifies which wiki page is to be used as the wiki's front page.
  84. # Gitit creates a default front page on startup, if one does not exist
  85. # already.
  86. no-delete: Front Page, Help
  87. # specifies pages that cannot be deleted through the web interface.
  88. # (They can still be deleted directly using git or darcs.)
  89. # A comma-separated list of page names. Leave blank to allow
  90. # every page to be deleted.
  91. no-edit: Help
  92. # specifies pages that cannot be edited through the web interface.
  93. # Leave blank to allow every page to be edited.
  94. default-summary:
  95. # specifies text to be used in the change description if the author
  96. # leaves the "description" field blank. If default-summary is blank
  97. # (the default), the author will be required to fill in the description
  98. # field.
  99. table-of-contents: yes
  100. # specifies whether to print a tables of contents (with links to
  101. # sections) on each wiki page.
  102. plugins:
  103. # specifies a list of plugins to load. Plugins may be specified
  104. # either by their path or by their module name. If the plugin name
  105. # starts with Gitit.Plugin., gitit will assume that the plugin is
  106. # an installed module and will not try to find a source file.
  107. # Examples:
  108. # plugins: plugins/DotPlugin.hs, CapitalizeEmphasisPlugin.hs
  109. # plugins: plugins/DotPlugin
  110. # plugins: Gitit.Plugin.InterwikiLinks
  111. use-cache: no
  112. # specifies whether to cache rendered pages. Note that if use-feed
  113. # is selected, feeds will be cached regardless of the value of use-cache.
  114. cache-dir: cache
  115. # directory where rendered pages will be cached
  116. max-upload-size: 100K
  117. # specifies an upper limit on the size (in bytes) of files uploaded
  118. # through the wiki's web interface.
  119. # To disable uploads, set this to 0K.
  120. # This will result in the uploads link disappearing
  121. # and the _upload url becoming inactive.
  122. max-page-size: 100K
  123. # specifies an upper limit on the size (in bytes) of pages
  124. debug-mode: no
  125. # if "yes", causes debug information to be logged while gitit is running.
  126. compress-responses: no
  127. # specifies whether HTTP responses should be compressed.
  128. mime-types-file: /etc/mime.types
  129. # specifies the path of a file containing mime type mappings.
  130. # Each line of the file should contain two fields, separated by
  131. # whitespace. The first field is the mime type, the second is a
  132. # file extension. For example:
  133. # video/x-ms-wmx wmx
  134. # If the file is not found, some simple defaults will be used.
  135. use-recaptcha: no
  136. # if "yes", causes gitit to use the reCAPTCHA service
  137. # (http://recaptcha.net) to prevent bots from creating accounts.
  138. recaptcha-private-key:
  139. recaptcha-public-key:
  140. # specifies the public and private keys for the reCAPTCHA service.
  141. # To get these, you need to create an account at http://recaptcha.net.
  142. access-question:
  143. access-question-answers:
  144. # specifies a question that users must answer when they attempt to create
  145. # an account, along with a comma-separated list of acceptable answers.
  146. # This can be used to institute a rudimentary password for signing up as
  147. # a user on the wiki, or as an alternative to reCAPTCHA.
  148. # Example:
  149. # access-question: What is the code given to you by Ms. X?
  150. # access-question-answers: RED DOG, red dog
  151. rpx-domain:
  152. rpx-key:
  153. # Specifies the domain and key of your RPX account. The domain is
  154. # just the prefix of the complete RPX domain, so if your full domain
  155. # is 'https://foo.rpxnow.com/', use 'foo' as the value of rpx-domain.
  156. mail-command: sendmail %s
  157. # specifies the command to use to send notification emails.
  158. # '%s' will be replaced by the destination email address.
  159. # The body of the message will be read from stdin.
  160. # If this field is left blank, password reset will not be offered.
  161. reset-password-message:
  162. > From: nobody@$hostname$
  163. > To: $useremail$
  164. > Subject: Wiki password reset
  165. >
  166. > Dear $username$:
  167. >
  168. > To reset your password, please follow the link below:
  169. > http://$hostname$:$port$$resetlink$
  170. >
  171. > Yours sincerely,
  172. > The Wiki Master
  173. # gives the text of the message that will be sent to the user should she
  174. # want to reset her password, or change other registration info.
  175. # The lines must be indented, and must begin with '>'. The initial
  176. # spaces and '> ' will be stripped off. $username$ will be replaced
  177. # by the user's username, $useremail$ by her email address,
  178. # $hostname$ by the hostname on which the wiki is running (as
  179. # returned by the hostname system call), $port$ by the port on
  180. # which the wiki is running, and $resetlink$ by the
  181. # relative path of a reset link derived from the user's existing
  182. # hashed password. If your gitit wiki is being proxied to a location
  183. # other than the root path of $port$, you should change the link to
  184. # reflect this: for example, to
  185. # http://$hostname$/path/to/wiki$resetlink$ or
  186. # http://gitit.$hostname$$resetlink$
  187. use-feed: no
  188. # specifies whether an ATOM feed should be enabled (for the site and for
  189. # individual pages)
  190. base-url:
  191. # the base URL of the wiki, to be used in constructing feed IDs
  192. # and RPX token_urls. Set this if use-feed is 'yes' or
  193. # authentication-method is 'rpx'.
  194. absolute-urls: yes
  195. # make wikilinks absolute with respect to the base-url.
  196. # So, for example, in a wiki served at the base URL '/wiki', on a page
  197. # Sub/Page, the wikilink '[Cactus]()' will produce a link to
  198. # '/wiki/Cactus' if absolute-urls is 'yes', and a relative link to 'Cactus'
  199. # (referring to '/wiki/Sub/Cactus') if absolute-urls is 'no'.
  200. feed-days: 14
  201. # number of days to be included in feeds.
  202. feed-refresh-time: 60
  203. # number of minutes to cache feeds before refreshing
  204. pdf-export: no
  205. # if yes, PDF will appear in export options. PDF will be created using
  206. # pdflatex, which must be installed and in the path. Note that PDF
  207. # exports create significant additional server load.
  208. pandoc-user-data:
  209. # if a directory is specified, this will be searched for pandoc
  210. # customizations. These can include a templates/ directory for custom
  211. # templates for various export formats, an S5 directory for custom
  212. # S5 styles, and a reference.odt for ODT exports. If no directory is
  213. # specified, $HOME/.pandoc will be searched. See pandoc's README for
  214. # more information.
  215. xss-sanitize: yes
  216. # if yes, all HTML (including that produced by pandoc) is filtered
  217. # through xss-sanitize. Set to no only if you trust all of your users.