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.

137 lines
3.8 KiB

  1. #######################################################################
  2. # Wiki.js - CONFIGURATION #
  3. #######################################################################
  4. # Full explanation + examples in the documentation:
  5. # https://wiki.requarks.io/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. # To use process.env.PORT, comment the line below:
  18. port: 80
  19. # ---------------------------------------------------------------------
  20. # Data Directories
  21. # ---------------------------------------------------------------------
  22. paths:
  23. repo: ./repo
  24. data: ./data
  25. # ---------------------------------------------------------------------
  26. # Upload Limits
  27. # ---------------------------------------------------------------------
  28. # In megabytes (MB)
  29. uploads:
  30. maxImageFileSize: 3
  31. maxOtherFileSize: 100
  32. # ---------------------------------------------------------------------
  33. # Site Language
  34. # ---------------------------------------------------------------------
  35. # Possible values: en, fr
  36. lang: en
  37. # ---------------------------------------------------------------------
  38. # Site Authentication
  39. # ---------------------------------------------------------------------
  40. public: false
  41. auth:
  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. # ---------------------------------------------------------------------
  74. # Secret key to use when encrypting sessions
  75. # ---------------------------------------------------------------------
  76. # Use a long and unique random string (256-bit keys are perfect!)
  77. sessionSecret: 1234567890abcdefghijklmnopqrstuvxyz
  78. # ---------------------------------------------------------------------
  79. # Database Connection String
  80. # ---------------------------------------------------------------------
  81. # You can also use an ENV variable by using $ENV_VAR_NAME as the value
  82. db: mongodb://localhost:27017/wiki
  83. # ---------------------------------------------------------------------
  84. # Git Connection Info
  85. # ---------------------------------------------------------------------
  86. git:
  87. url: https://github.com/Organization/Repo
  88. branch: master
  89. auth:
  90. # Type: basic or ssh
  91. type: ssh
  92. # Only for Basic authentication:
  93. username: marty
  94. password: MartyMcFly88
  95. # Only for SSH authentication:
  96. privateKey: /etc/wiki/keys/git.pem
  97. sslVerify: true
  98. signature:
  99. name: Marty
  100. email: marty@example.com
  101. # ---------------------------------------------------------------------
  102. # External Logging
  103. # ---------------------------------------------------------------------
  104. externalLogging:
  105. bugsnag: false
  106. loggly: false
  107. papertrail: false
  108. rollbar: false
  109. sentry: false