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.

141 lines
4.7 KiB

  1. #######################################################################
  2. # Wiki.js - CONFIGURATION #
  3. #######################################################################
  4. # Full documentation + examples:
  5. # https://docs.requarks.io/install
  6. # ---------------------------------------------------------------------
  7. # Port the server should listen to
  8. # ---------------------------------------------------------------------
  9. port: 3000
  10. # ---------------------------------------------------------------------
  11. # Database
  12. # ---------------------------------------------------------------------
  13. # Supported Database Engines:
  14. # - postgres = PostgreSQL 9.5 or later
  15. # - mysql = MySQL 8.0 or later (5.7.8 partially supported, refer to docs)
  16. # - mariadb = MariaDB 10.2.7 or later
  17. # - mssql = MS SQL Server 2012 or later
  18. # - sqlite = SQLite 3.9 or later
  19. db:
  20. type: postgres
  21. # PostgreSQL / MySQL / MariaDB / MS SQL Server only:
  22. host: localhost
  23. port: 5432
  24. user: wikijs
  25. pass: wikijsrocks
  26. db: wiki
  27. ssl: false
  28. # Optional - PostgreSQL / MySQL / MariaDB only:
  29. # -> Uncomment lines you need below and set `auto` to false
  30. # -> Full list of accepted options: https://nodejs.org/api/tls.html#tls_tls_createsecurecontext_options
  31. sslOptions:
  32. auto: true
  33. # rejectUnauthorized: false
  34. # ca: path/to/ca.crt
  35. # cert: path/to/cert.crt
  36. # key: path/to/key.pem
  37. # pfx: path/to/cert.pfx
  38. # passphrase: xyz123
  39. # SQLite only:
  40. storage: path/to/database.sqlite
  41. #######################################################################
  42. # ADVANCED OPTIONS #
  43. #######################################################################
  44. # Do not change unless you know what you are doing!
  45. # ---------------------------------------------------------------------
  46. # SSL/TLS Settings
  47. # ---------------------------------------------------------------------
  48. # Consider using a reverse proxy (e.g. nginx) if you require more
  49. # advanced options than those provided below.
  50. ssl:
  51. enabled: false
  52. port: 3443
  53. # Provider to use, possible values: custom, letsencrypt
  54. provider: custom
  55. # ++++++ For custom only ++++++
  56. # Certificate format, either 'pem' or 'pfx':
  57. format: pem
  58. # Using PEM format:
  59. key: path/to/key.pem
  60. cert: path/to/cert.pem
  61. # Using PFX format:
  62. pfx: path/to/cert.pfx
  63. # Passphrase when using encrypted PEM / PFX keys (default: null):
  64. passphrase: null
  65. # Diffie Hellman parameters, with key length being greater or equal
  66. # to 1024 bits (default: null):
  67. dhparam: null
  68. # ++++++ For letsencrypt only ++++++
  69. domain: wiki.yourdomain.com
  70. subscriberEmail: admin@example.com
  71. # ---------------------------------------------------------------------
  72. # Database Pool Options
  73. # ---------------------------------------------------------------------
  74. # Refer to https://github.com/vincit/tarn.js for all possible options
  75. pool:
  76. # min: 2
  77. # max: 10
  78. # ---------------------------------------------------------------------
  79. # IP address the server should listen to
  80. # ---------------------------------------------------------------------
  81. # Leave 0.0.0.0 for all interfaces
  82. bindIP: 0.0.0.0
  83. # ---------------------------------------------------------------------
  84. # Log Level
  85. # ---------------------------------------------------------------------
  86. # Possible values: error, warn, info (default), verbose, debug, silly
  87. logLevel: info
  88. # ---------------------------------------------------------------------
  89. # Upload Limits
  90. # ---------------------------------------------------------------------
  91. # If you're using a reverse-proxy in front of Wiki.js, you must also
  92. # change your proxy upload limits!
  93. uploads:
  94. # Maximum upload size in bytes per file (default: 5242880 (5 MB))
  95. maxFileSize: 5242880
  96. # Maximum file uploads per request (default: 10)
  97. maxFiles: 10
  98. # ---------------------------------------------------------------------
  99. # Offline Mode
  100. # ---------------------------------------------------------------------
  101. # If your server cannot access the internet. Set to true and manually
  102. # download the offline files for sideloading.
  103. offline: false
  104. # ---------------------------------------------------------------------
  105. # High-Availability
  106. # ---------------------------------------------------------------------
  107. # Set to true if you have multiple concurrent instances running off the
  108. # same DB (e.g. Kubernetes pods / load balanced instances). Leave false
  109. # otherwise. You MUST be using PostgreSQL to use this feature.
  110. ha: false
  111. # ---------------------------------------------------------------------
  112. # Data Path
  113. # ---------------------------------------------------------------------
  114. # Writeable data path used for cache and temporary user uploads.
  115. dataPath: ./data