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.

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