123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- #######################################################################
- # Wiki.js - CONFIGURATION #
- #######################################################################
- # Full documentation + examples:
- # https://next.js.wiki/docs/install
- # ---------------------------------------------------------------------
- # Port the server should listen to
- # ---------------------------------------------------------------------
- port: 3000
- # ---------------------------------------------------------------------
- # Database
- # ---------------------------------------------------------------------
- # PostgreSQL 12 or later required
- db:
- host: localhost
- port: 5432
- user: postgres
- pass: postgres
- db: postgres
- schema: wiki
- ssl: false
- # Optional
- # -> Uncomment lines you need below and set `auto` to false
- # -> Full list of accepted options: https://nodejs.org/api/tls.html#tls_tls_createsecurecontext_options
- sslOptions:
- auto: true
- # rejectUnauthorized: false
- # ca: path/to/ca.crt
- # cert: path/to/cert.crt
- # key: path/to/key.pem
- # pfx: path/to/cert.pfx
- # passphrase: xyz123
- #######################################################################
- # ADVANCED OPTIONS #
- #######################################################################
- # Do not change unless you know what you are doing!
- # ---------------------------------------------------------------------
- # SSL/TLS Settings
- # ---------------------------------------------------------------------
- # Consider using a reverse proxy (e.g. nginx) if you require more
- # advanced options than those provided below.
- ssl:
- enabled: false
- port: 3443
- # Provider to use, possible values: custom, letsencrypt
- provider: custom
- # ++++++ For custom only ++++++
- # Certificate format, either 'pem' or 'pfx':
- format: pem
- # Using PEM format:
- key: path/to/key.pem
- cert: path/to/cert.pem
- # Using PFX format:
- pfx: path/to/cert.pfx
- # Passphrase when using encrypted PEM / PFX keys (default: null):
- passphrase: null
- # Diffie Hellman parameters, with key length being greater or equal
- # to 1024 bits (default: null):
- dhparam: null
- # ++++++ For letsencrypt only ++++++
- domain: wiki.yourdomain.com
- subscriberEmail: admin@example.com
- # ---------------------------------------------------------------------
- # Database Pool Options
- # ---------------------------------------------------------------------
- # Refer to https://github.com/vincit/tarn.js for all possible options
- pool:
- # min: 2
- # max: 10
- # ---------------------------------------------------------------------
- # IP address the server should listen to
- # ---------------------------------------------------------------------
- # Leave 0.0.0.0 for all interfaces
- bindIP: 0.0.0.0
- # ---------------------------------------------------------------------
- # Logging
- # ---------------------------------------------------------------------
- # Possible values: error, warn, info (default), debug
- logLevel: info
- # Output format for logging, possible values: default, json
- logFormat: default
- # ---------------------------------------------------------------------
- # Offline Mode
- # ---------------------------------------------------------------------
- # If your server cannot access the internet. Set to true and manually
- # download the offline files for sideloading.
- offline: false
- # ---------------------------------------------------------------------
- # Data Path
- # ---------------------------------------------------------------------
- # Writeable data path used for cache and temporary user uploads.
- dataPath: ./data
- # ---------------------------------------------------------------------
- # Body Parser Limit
- # ---------------------------------------------------------------------
- # Maximum size of API requests body that can be parsed. Does not affect
- # file uploads.
- bodyParserLimit: 5mb
- # ---------------------------------------------------------------------
- # Scheduler
- # ---------------------------------------------------------------------
- scheduler:
- # Maximum number of workers to run background cpu-intensive jobs.
- # Leave 'auto' to use number of CPU cores as maximum.
- workers: auto
- # ---------------------------------------------------------------------
- # Dev Mode
- # ---------------------------------------------------------------------
- # Settings when running in dev mode only
- dev:
- port: 3001
- hmrClientPort: 3001
|