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.

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