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.

107 lines
3.6 KiB

  1. #######################################################################
  2. # Wiki.js - CONFIGURATION #
  3. #######################################################################
  4. # Full documentation + examples:
  5. # https://docs-beta.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. # SQLite only:
  29. storage: path/to/database.sqlite
  30. #######################################################################
  31. # ADVANCED OPTIONS #
  32. #######################################################################
  33. # Do not change unless you know what you are doing!
  34. # ---------------------------------------------------------------------
  35. # Use X-Forwarded-For header
  36. # ---------------------------------------------------------------------
  37. # Enable only if Wiki.js is behind a reverse-proxy (nginx, apache, etc)
  38. # or a cloud proxying services like Cloudflare.
  39. trustProxy: false
  40. # ---------------------------------------------------------------------
  41. # SSL/TLS Settings
  42. # ---------------------------------------------------------------------
  43. # Consider using a reverse proxy (e.g. nginx) if you require more
  44. # advanced options than those provided below.
  45. ssl:
  46. enabled: false
  47. # Certificate format, either 'pem' or 'pfx':
  48. format: pem
  49. # Using PEM format:
  50. key: path/to/key.pem
  51. cert: path/to/cert.pem
  52. # Using PFX format:
  53. pfx: path/to/cert.pfx
  54. # Passphrase when using encrypted PEM / PFX keys (default: null):
  55. passphrase: null
  56. # Diffie Hellman parameters, with key length being greater or equal
  57. # to 1024 bits (default: null):
  58. dhparam: null
  59. # Listen on this HTTP port and redirect all requests to HTTPS.
  60. # Set to false to disable (default: 80):
  61. redirectNonSSLPort: 80
  62. # ---------------------------------------------------------------------
  63. # Database Pool Options
  64. # ---------------------------------------------------------------------
  65. # Refer to https://github.com/vincit/tarn.js for all possible options
  66. pool:
  67. # min: 2
  68. # max: 10
  69. # ---------------------------------------------------------------------
  70. # IP address the server should listen to
  71. # ---------------------------------------------------------------------
  72. # Leave 0.0.0.0 for all interfaces
  73. bindIP: 0.0.0.0
  74. # ---------------------------------------------------------------------
  75. # Log Level
  76. # ---------------------------------------------------------------------
  77. # Possible values: error, warn, info (default), verbose, debug, silly
  78. logLevel: info
  79. # ---------------------------------------------------------------------
  80. # Upload Limits
  81. # ---------------------------------------------------------------------
  82. # If you're using a reverse-proxy in front of Wiki.js, you must also
  83. # change your proxy upload limits!
  84. uploads:
  85. # Maximum upload size in bytes per file (default: 5242880 (5 MB))
  86. maxFileSize: 5242880
  87. # Maximum file uploads per request (default: 20)
  88. maxFiles: 10