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.

154 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_TITLE)
  10. # ---------------------------------------------------------------------
  11. # Full public path to the site, without the trailing slash
  12. # ---------------------------------------------------------------------
  13. host: $(WIKI_HOST)
  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: $(WIKI_LANG)
  36. # ---------------------------------------------------------------------
  37. # Site Authentication
  38. # ---------------------------------------------------------------------
  39. public: $(WIKI_PUBLIC)
  40. auth:
  41. defaultReadAccess: false
  42. local:
  43. enabled: true
  44. google:
  45. enabled: false
  46. clientId: GOOGLE_CLIENT_ID
  47. clientSecret: GOOGLE_CLIENT_SECRET
  48. microsoft:
  49. enabled: false
  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: $(WIKI_SESSION_KEY)
  84. # ---------------------------------------------------------------------
  85. # Database Connection String
  86. # ---------------------------------------------------------------------
  87. db: $(MONGODB_URI)
  88. # ---------------------------------------------------------------------
  89. # Git Connection Info
  90. # ---------------------------------------------------------------------
  91. git:
  92. url: $(WIKI_GIT_URL)
  93. branch: $(WIKI_GIT_BRANCH)
  94. auth:
  95. # Type: basic or ssh
  96. type: basic
  97. # Only for Basic authentication:
  98. username: $(WIKI_GIT_USERNAME)
  99. password: $(WIKI_GIT_PASSWORD)
  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: $(WIKI_SERVER_EMAIL)
  105. # Whether to use user email as author in commits
  106. showUserEmail: $(WIKI_SHOW_USER_EMAIL)
  107. # ---------------------------------------------------------------------
  108. # Features
  109. # ---------------------------------------------------------------------
  110. # You can enable / disable specific features below
  111. features:
  112. linebreaks: true
  113. mathjax: true
  114. # ---------------------------------------------------------------------
  115. # External Logging
  116. # ---------------------------------------------------------------------
  117. externalLogging:
  118. bugsnag: false
  119. loggly: false
  120. papertrail: false
  121. rollbar: false
  122. sentry: false