config.sample.yml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. #######################################################################
  2. # Wiki.js - CONFIGURATION #
  3. #######################################################################
  4. # Full documentation + examples:
  5. # https://next.js.wiki/docs/install
  6. # ---------------------------------------------------------------------
  7. # Port the server should listen to
  8. # ---------------------------------------------------------------------
  9. port: 3000
  10. # ---------------------------------------------------------------------
  11. # Database
  12. # ---------------------------------------------------------------------
  13. # PostgreSQL 12 or later required
  14. db:
  15. host: localhost
  16. port: 5432
  17. user: postgres
  18. pass: postgres
  19. db: postgres
  20. schema: wiki
  21. ssl: false
  22. # Optional
  23. # -> Uncomment lines you need below and set `auto` to false
  24. # -> Full list of accepted options: https://nodejs.org/api/tls.html#tls_tls_createsecurecontext_options
  25. sslOptions:
  26. auto: true
  27. # rejectUnauthorized: false
  28. # ca: path/to/ca.crt
  29. # cert: path/to/cert.crt
  30. # key: path/to/key.pem
  31. # pfx: path/to/cert.pfx
  32. # passphrase: xyz123
  33. #######################################################################
  34. # ADVANCED OPTIONS #
  35. #######################################################################
  36. # Do not change unless you know what you are doing!
  37. # ---------------------------------------------------------------------
  38. # SSL/TLS Settings
  39. # ---------------------------------------------------------------------
  40. # Consider using a reverse proxy (e.g. nginx) if you require more
  41. # advanced options than those provided below.
  42. ssl:
  43. enabled: false
  44. port: 3443
  45. # Provider to use, possible values: custom, letsencrypt
  46. provider: custom
  47. # ++++++ For custom only ++++++
  48. # Certificate format, either 'pem' or 'pfx':
  49. format: pem
  50. # Using PEM format:
  51. key: path/to/key.pem
  52. cert: path/to/cert.pem
  53. # Using PFX format:
  54. pfx: path/to/cert.pfx
  55. # Passphrase when using encrypted PEM / PFX keys (default: null):
  56. passphrase: null
  57. # Diffie Hellman parameters, with key length being greater or equal
  58. # to 1024 bits (default: null):
  59. dhparam: null
  60. # ++++++ For letsencrypt only ++++++
  61. domain: wiki.yourdomain.com
  62. subscriberEmail: admin@example.com
  63. # ---------------------------------------------------------------------
  64. # Database Pool Options
  65. # ---------------------------------------------------------------------
  66. # Refer to https://github.com/vincit/tarn.js for all possible options
  67. pool:
  68. # min: 2
  69. # max: 10
  70. # ---------------------------------------------------------------------
  71. # IP address the server should listen to
  72. # ---------------------------------------------------------------------
  73. # Leave 0.0.0.0 for all interfaces
  74. bindIP: 0.0.0.0
  75. # ---------------------------------------------------------------------
  76. # Logging
  77. # ---------------------------------------------------------------------
  78. # Possible values: error, warn, info (default), debug
  79. logLevel: info
  80. # Output format for logging, possible values: default, json
  81. logFormat: default
  82. # ---------------------------------------------------------------------
  83. # Offline Mode
  84. # ---------------------------------------------------------------------
  85. # If your server cannot access the internet. Set to true and manually
  86. # download the offline files for sideloading.
  87. offline: false
  88. # ---------------------------------------------------------------------
  89. # Data Path
  90. # ---------------------------------------------------------------------
  91. # Writeable data path used for cache and temporary user uploads.
  92. dataPath: ./data
  93. # ---------------------------------------------------------------------
  94. # Body Parser Limit
  95. # ---------------------------------------------------------------------
  96. # Maximum size of API requests body that can be parsed. Does not affect
  97. # file uploads.
  98. bodyParserLimit: 5mb
  99. # ---------------------------------------------------------------------
  100. # Scheduler
  101. # ---------------------------------------------------------------------
  102. scheduler:
  103. # Maximum number of workers to run background cpu-intensive jobs.
  104. # Leave 'auto' to use number of CPU cores as maximum.
  105. workers: auto
  106. # ---------------------------------------------------------------------
  107. # Dev Mode
  108. # ---------------------------------------------------------------------
  109. # Settings when running in dev mode only
  110. dev:
  111. port: 3001
  112. hmrClientPort: 3001