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.

134 lines
3.9 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: {{username}} to use the provided username in search
  71. searchFilter: (uid={{username}})
  72. tlsEnabled: false
  73. tlsCertPath: C:\example\root_ca_cert.crt
  74. # ---------------------------------------------------------------------
  75. # Secret key to use when encrypting sessions
  76. # ---------------------------------------------------------------------
  77. # Use a long and unique random string (256-bit keys are perfect!)
  78. sessionSecret: 1234567890abcdefghijklmnopqrstuvxyz
  79. # ---------------------------------------------------------------------
  80. # Administrator email
  81. # ---------------------------------------------------------------------
  82. # An admin account will be created using the email specified here.
  83. # The password is set to "admin123" by default. Change it immediately
  84. # upon login!!!
  85. admin: admin@company.com
  86. # ---------------------------------------------------------------------
  87. # Database Connection String
  88. # ---------------------------------------------------------------------
  89. db: mongodb://localhost:27017/wiki
  90. # ---------------------------------------------------------------------
  91. # Git Connection Info
  92. # ---------------------------------------------------------------------
  93. git:
  94. url: https://github.com/Organization/Repo
  95. branch: master
  96. auth:
  97. # Type: basic or ssh
  98. type: ssh
  99. # Only for Basic authentication:
  100. username: marty
  101. password: MartyMcFly88
  102. # Only for SSH authentication:
  103. privateKey: /etc/wiki/keys/git.pem
  104. sslVerify: true
  105. signature:
  106. name: Marty
  107. email: marty@example.com