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.

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