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.

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