config.sample.yml 5.0 KB

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