config.sample.yml 4.4 KB

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