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.

127 lines
4.2 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. # Certificate format, either 'pem' or 'pfx':
  53. format: pem
  54. # Using PEM format:
  55. key: path/to/key.pem
  56. cert: path/to/cert.pem
  57. # Using PFX format:
  58. pfx: path/to/cert.pfx
  59. # Passphrase when using encrypted PEM / PFX keys (default: null):
  60. passphrase: null
  61. # Diffie Hellman parameters, with key length being greater or equal
  62. # to 1024 bits (default: null):
  63. dhparam: null
  64. # Listen on this HTTP port and redirect all requests to HTTPS.
  65. # Set to false to disable (default: 80):
  66. redirectNonSSLPort: 80
  67. # ---------------------------------------------------------------------
  68. # Database Pool Options
  69. # ---------------------------------------------------------------------
  70. # Refer to https://github.com/vincit/tarn.js for all possible options
  71. pool:
  72. # min: 2
  73. # max: 10
  74. # ---------------------------------------------------------------------
  75. # IP address the server should listen to
  76. # ---------------------------------------------------------------------
  77. # Leave 0.0.0.0 for all interfaces
  78. bindIP: 0.0.0.0
  79. # ---------------------------------------------------------------------
  80. # Log Level
  81. # ---------------------------------------------------------------------
  82. # Possible values: error, warn, info (default), verbose, debug, silly
  83. logLevel: info
  84. # ---------------------------------------------------------------------
  85. # Upload Limits
  86. # ---------------------------------------------------------------------
  87. # If you're using a reverse-proxy in front of Wiki.js, you must also
  88. # change your proxy upload limits!
  89. uploads:
  90. # Maximum upload size in bytes per file (default: 5242880 (5 MB))
  91. maxFileSize: 5242880
  92. # Maximum file uploads per request (default: 10)
  93. maxFiles: 10
  94. # ---------------------------------------------------------------------
  95. # Offline Mode
  96. # ---------------------------------------------------------------------
  97. # If your server cannot access the internet. Set to true and manually
  98. # download the offline files for sideloading.
  99. offline: false
  100. # ---------------------------------------------------------------------
  101. # Data Path
  102. # ---------------------------------------------------------------------
  103. # Writeable data path used for cache and temporary user uploads.
  104. dataPath: ./data