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.

116 lines
3.4 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. # ---------------------------------------------------------------------
  57. # Secret key to use when encrypting sessions
  58. # ---------------------------------------------------------------------
  59. # Use a long and unique random string (256-bit keys are perfect!)
  60. sessionSecret: 1234567890abcdefghijklmnopqrstuvxyz
  61. # ---------------------------------------------------------------------
  62. # Administrator email
  63. # ---------------------------------------------------------------------
  64. # An admin account will be created using the email specified here.
  65. # The password is set to "admin123" by default. Change it immediately
  66. # upon login!!!
  67. admin: admin@company.com
  68. # ---------------------------------------------------------------------
  69. # Database Connection String
  70. # ---------------------------------------------------------------------
  71. db: mongodb://localhost:27017/wiki
  72. # ---------------------------------------------------------------------
  73. # Git Connection Info
  74. # ---------------------------------------------------------------------
  75. git:
  76. url: https://github.com/Organization/Repo
  77. branch: master
  78. auth:
  79. # Type: basic or ssh
  80. type: ssh
  81. # Only for Basic authentication:
  82. username: marty
  83. password: MartyMcFly88
  84. # Only for SSH authentication:
  85. privateKey: /etc/wiki/keys/git.pem
  86. sslVerify: true
  87. signature:
  88. name: Marty
  89. email: marty@example.com