config.sample.yml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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, 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. # ---------------------------------------------------------------------
  85. # Secret key to use when encrypting sessions
  86. # ---------------------------------------------------------------------
  87. # Use a long and unique random string (256-bit keys are perfect!)
  88. sessionSecret: 1234567890abcdefghijklmnopqrstuvxyz
  89. # ---------------------------------------------------------------------
  90. # Database Connection String
  91. # ---------------------------------------------------------------------
  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