gitit.conf 12 KB

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