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.

133 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: (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. # Administrator email
  80. # ---------------------------------------------------------------------
  81. # An admin account will be created using the email specified here.
  82. # The password is set to "admin123" by default. Change it immediately
  83. # upon login!!!
  84. admin: admin@company.com
  85. # ---------------------------------------------------------------------
  86. # Database Connection String
  87. # ---------------------------------------------------------------------
  88. db: mongodb://localhost:27017/wiki
  89. # ---------------------------------------------------------------------
  90. # Git Connection Info
  91. # ---------------------------------------------------------------------
  92. git:
  93. url: https://github.com/Organization/Repo
  94. branch: master
  95. auth:
  96. # Type: basic or ssh
  97. type: ssh
  98. # Only for Basic authentication:
  99. username: marty
  100. password: MartyMcFly88
  101. # Only for SSH authentication:
  102. privateKey: /etc/wiki/keys/git.pem
  103. sslVerify: true
  104. signature:
  105. name: Marty
  106. email: marty@example.com