You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

172 lines
4.8 KiB

  1. #######################################################################
  2. # Wiki.js - CONFIGURATION #
  3. #######################################################################
  4. # Full explanation + examples in the documentation:
  5. # https://docs.requarks.io/wiki/install
  6. # ---------------------------------------------------------------------
  7. # Title of this site
  8. # ---------------------------------------------------------------------
  9. title: Wiki
  10. # ---------------------------------------------------------------------
  11. # Full public path to the site, without the trailing slash
  12. # ---------------------------------------------------------------------
  13. # INCLUDE CLIENT PORT IF NOT 80/443!
  14. host: http://localhost
  15. # ---------------------------------------------------------------------
  16. # Port the main server should listen to (80 by default)
  17. # ---------------------------------------------------------------------
  18. # To use process.env.PORT, comment the line below:
  19. port: 80
  20. # ---------------------------------------------------------------------
  21. # Data Directories
  22. # ---------------------------------------------------------------------
  23. paths:
  24. repo: ./repo
  25. data: ./data
  26. # ---------------------------------------------------------------------
  27. # Upload Limits
  28. # ---------------------------------------------------------------------
  29. # In megabytes (MB)
  30. uploads:
  31. maxImageFileSize: 3
  32. maxOtherFileSize: 100
  33. # ---------------------------------------------------------------------
  34. # Site Language
  35. # ---------------------------------------------------------------------
  36. # Possible values: en, de, es, fa, fr, ko, nl, pt, ru, sr, tr or zh
  37. lang: en
  38. # Enable for right to left languages (e.g. arabic):
  39. langRtl: false
  40. # ---------------------------------------------------------------------
  41. # Site Authentication
  42. # ---------------------------------------------------------------------
  43. public: false
  44. auth:
  45. defaultReadAccess: false
  46. local:
  47. enabled: true
  48. google:
  49. enabled: true
  50. clientId: GOOGLE_CLIENT_ID
  51. clientSecret: GOOGLE_CLIENT_SECRET
  52. microsoft:
  53. enabled: true
  54. clientId: MS_APP_ID
  55. clientSecret: MS_APP_SECRET
  56. facebook:
  57. enabled: false
  58. clientId: FACEBOOK_APP_ID
  59. clientSecret: FACEBOOK_APP_SECRET
  60. github:
  61. enabled: false
  62. clientId: GITHUB_CLIENT_ID
  63. clientSecret: GITHUB_CLIENT_SECRET
  64. slack:
  65. enabled: false
  66. clientId: SLACK_CLIENT_ID
  67. clientSecret: SLACK_CLIENT_SECRET
  68. ldap:
  69. enabled: false
  70. url: ldap://serverhost:389
  71. bindDn: cn='root'
  72. bindCredentials: BIND_PASSWORD
  73. searchBase: o=users,o=example.com
  74. searchFilter: (uid={{username}})
  75. tlsEnabled: false
  76. tlsCertPath: C:\example\root_ca_cert.crt
  77. azure:
  78. enabled: false
  79. clientId: APP_ID
  80. clientSecret: APP_SECRET_KEY
  81. resource: '00000002-0000-0000-c000-000000000000'
  82. tenant: 'YOUR_TENANT.onmicrosoft.com'
  83. # ---------------------------------------------------------------------
  84. # Secret key to use when encrypting sessions
  85. # ---------------------------------------------------------------------
  86. # Use a long and unique random string (256-bit keys are perfect!)
  87. sessionSecret: 1234567890abcdefghijklmnopqrstuvxyz
  88. # ---------------------------------------------------------------------
  89. # Database Connection String
  90. # ---------------------------------------------------------------------
  91. # You can also use an ENV variable by using $ENV_VAR_NAME as the value
  92. db: mongodb://localhost:27017/wiki
  93. # ---------------------------------------------------------------------
  94. # Git Connection Info
  95. # ---------------------------------------------------------------------
  96. git:
  97. url: https://github.com/Organization/Repo
  98. branch: master
  99. auth:
  100. # Type: basic or ssh
  101. type: ssh
  102. # Only for Basic authentication:
  103. username: marty
  104. password: MartyMcFly88
  105. # Only for SSH authentication:
  106. privateKey: /etc/wiki/keys/git.pem
  107. sslVerify: true
  108. # Default email to use as commit author
  109. serverEmail: marty@example.com
  110. # Whether to use user email as author in commits
  111. showUserEmail: true
  112. # ---------------------------------------------------------------------
  113. # Features
  114. # ---------------------------------------------------------------------
  115. # You can enable / disable specific features below
  116. features:
  117. linebreaks: true
  118. mathjax: true
  119. # ---------------------------------------------------------------------
  120. # External Logging
  121. # ---------------------------------------------------------------------
  122. externalLogging:
  123. bugsnag: false
  124. loggly: false
  125. papertrail: false
  126. rollbar: false
  127. sentry: false
  128. # ---------------------------------------------------------------------
  129. # Color Theme
  130. # ---------------------------------------------------------------------
  131. theme:
  132. primary: indigo
  133. alt: blue-grey
  134. viewSource: all # all | write | false
  135. footer: blue-grey
  136. code:
  137. dark: true
  138. colorize: true