default.conf 12 KB

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