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.

112 lines
3.8 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. # 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. # SSL/TLS Settings
  36. # ---------------------------------------------------------------------
  37. # Consider using a reverse proxy (e.g. nginx) if you require more
  38. # advanced options than those provided below.
  39. ssl:
  40. enabled: false
  41. # Certificate format, either 'pem' or 'pfx':
  42. format: pem
  43. # Using PEM format:
  44. key: path/to/key.pem
  45. cert: path/to/cert.pem
  46. # Using PFX format:
  47. pfx: path/to/cert.pfx
  48. # Passphrase when using encrypted PEM / PFX keys (default: null):
  49. passphrase: null
  50. # Diffie Hellman parameters, with key length being greater or equal
  51. # to 1024 bits (default: null):
  52. dhparam: null
  53. # Listen on this HTTP port and redirect all requests to HTTPS.
  54. # Set to false to disable (default: 80):
  55. redirectNonSSLPort: 80
  56. # ---------------------------------------------------------------------
  57. # Database Pool Options
  58. # ---------------------------------------------------------------------
  59. # Refer to https://github.com/vincit/tarn.js for all possible options
  60. pool:
  61. # min: 2
  62. # max: 10
  63. # ---------------------------------------------------------------------
  64. # IP address the server should listen to
  65. # ---------------------------------------------------------------------
  66. # Leave 0.0.0.0 for all interfaces
  67. bindIP: 0.0.0.0
  68. # ---------------------------------------------------------------------
  69. # Log Level
  70. # ---------------------------------------------------------------------
  71. # Possible values: error, warn, info (default), verbose, debug, silly
  72. logLevel: info
  73. # ---------------------------------------------------------------------
  74. # Upload Limits
  75. # ---------------------------------------------------------------------
  76. # If you're using a reverse-proxy in front of Wiki.js, you must also
  77. # change your proxy upload limits!
  78. uploads:
  79. # Maximum upload size in bytes per file (default: 5242880 (5 MB))
  80. maxFileSize: 5242880
  81. # Maximum file uploads per request (default: 20)
  82. maxFiles: 10
  83. # ---------------------------------------------------------------------
  84. # Offline Mode
  85. # ---------------------------------------------------------------------
  86. # If your server cannot access the internet. Set to true and manually
  87. # download the offline files for sideloading.
  88. offline: false
  89. # ---------------------------------------------------------------------
  90. # Data Path
  91. # ---------------------------------------------------------------------
  92. # Writeable data path for Wiki.js, mainly for cache and user uploads.
  93. dataPath: ./data