2016-09-05 00:39:59 -04:00
|
|
|
#######################################################################
|
2016-12-08 22:44:31 -05:00
|
|
|
# Wiki.js - CONFIGURATION #
|
2016-09-05 00:39:59 -04:00
|
|
|
#######################################################################
|
2017-12-16 23:41:16 -05:00
|
|
|
# Full documentation + examples:
|
2023-09-02 05:03:01 +00:00
|
|
|
# https://next.js.wiki/docs/install
|
2016-08-16 20:56:55 -04:00
|
|
|
|
2016-09-05 00:39:59 -04:00
|
|
|
# ---------------------------------------------------------------------
|
2018-05-28 14:46:55 -04:00
|
|
|
# Port the server should listen to
|
2016-09-05 00:39:59 -04:00
|
|
|
# ---------------------------------------------------------------------
|
2016-08-16 20:56:55 -04:00
|
|
|
|
2018-11-04 12:55:21 -05:00
|
|
|
port: 3000
|
2016-08-16 20:56:55 -04:00
|
|
|
|
2016-12-21 20:38:12 -05:00
|
|
|
# ---------------------------------------------------------------------
|
2017-10-22 13:30:16 -04:00
|
|
|
# Database
|
2017-10-22 13:24:43 -04:00
|
|
|
# ---------------------------------------------------------------------
|
2026-02-22 06:20:01 -05:00
|
|
|
# PostgreSQL 16 or later required
|
2017-10-22 13:24:43 -04:00
|
|
|
|
2017-10-22 13:30:16 -04:00
|
|
|
db:
|
|
|
|
|
host: localhost
|
|
|
|
|
port: 5432
|
2022-10-31 20:22:37 +00:00
|
|
|
user: postgres
|
|
|
|
|
pass: postgres
|
|
|
|
|
db: postgres
|
2023-09-02 05:03:01 +00:00
|
|
|
schema: wiki
|
2019-06-01 00:23:07 -04:00
|
|
|
ssl: false
|
2019-12-30 16:18:23 -05:00
|
|
|
|
2022-04-08 17:57:55 -04:00
|
|
|
# Optional
|
2019-12-30 16:18:23 -05:00
|
|
|
# -> 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
|
|
|
|
|
|
2019-01-30 01:30:05 -05:00
|
|
|
#######################################################################
|
|
|
|
|
# ADVANCED OPTIONS #
|
|
|
|
|
#######################################################################
|
|
|
|
|
# Do not change unless you know what you are doing!
|
|
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
|
# IP address the server should listen to
|
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
|
# Leave 0.0.0.0 for all interfaces
|
|
|
|
|
|
|
|
|
|
bindIP: 0.0.0.0
|
|
|
|
|
|
2017-12-16 23:41:16 -05:00
|
|
|
# ---------------------------------------------------------------------
|
2022-04-08 17:57:55 -04:00
|
|
|
# Logging
|
2017-12-16 23:41:16 -05:00
|
|
|
# ---------------------------------------------------------------------
|
2022-09-07 02:26:37 +00:00
|
|
|
# Possible values: error, warn, info (default), debug
|
2017-12-16 23:41:16 -05:00
|
|
|
|
|
|
|
|
logLevel: info
|
2019-05-13 01:15:27 -04:00
|
|
|
|
2022-02-19 01:48:22 +01:00
|
|
|
# Output format for logging, possible values: default, json
|
|
|
|
|
|
|
|
|
|
logFormat: default
|
|
|
|
|
|
2019-06-21 20:54:09 -04:00
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
|
# Offline Mode
|
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
|
# If your server cannot access the internet. Set to true and manually
|
|
|
|
|
# download the offline files for sideloading.
|
|
|
|
|
|
|
|
|
|
offline: false
|
2019-10-26 00:20:02 +02:00
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
|
# Data Path
|
|
|
|
|
# ---------------------------------------------------------------------
|
2019-12-30 16:18:23 -05:00
|
|
|
# Writeable data path used for cache and temporary user uploads.
|
|
|
|
|
dataPath: ./data
|
2022-02-11 23:38:34 -05:00
|
|
|
|
2026-07-26 17:06:48 +00:00
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
|
# Icons
|
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
|
# Icons are fetched from the Iconify API the first time they are used, then
|
|
|
|
|
# stored in the database and served by this instance. Point this at a
|
|
|
|
|
# self-hosted Iconify API to keep icon lookups inside your network.
|
|
|
|
|
|
|
|
|
|
icons:
|
|
|
|
|
apiUrl: 'https://api.iconify.design'
|
|
|
|
|
|
2022-02-11 23:38:34 -05:00
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
|
# Body Parser Limit
|
|
|
|
|
# ---------------------------------------------------------------------
|
2026-02-22 06:20:01 -05:00
|
|
|
# Maximum size of API requests body that can be parsed, in bytes.
|
|
|
|
|
# Does not affect file uploads. (default: 5242880 (5mb))
|
2022-02-11 23:38:34 -05:00
|
|
|
|
2026-02-22 06:20:01 -05:00
|
|
|
bodyParserLimit: 5242880
|
2022-09-24 06:08:34 +00:00
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------
|
2022-10-01 15:41:08 -04:00
|
|
|
# Scheduler
|
2022-09-24 06:08:34 +00:00
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
|
|
2022-10-01 15:41:08 -04:00
|
|
|
scheduler:
|
|
|
|
|
# Maximum number of workers to run background cpu-intensive jobs.
|
2022-10-01 22:57:15 -04:00
|
|
|
# Leave 'auto' to use number of CPU cores as maximum.
|
|
|
|
|
workers: auto
|
2023-01-26 04:51:19 +00:00
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
|
# Dev Mode
|
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
|
# Settings when running in dev mode only
|
|
|
|
|
|
|
|
|
|
dev:
|
2026-03-09 02:34:42 -04:00
|
|
|
dropSchema: false
|
|
|
|
|
logQueries: false
|
2023-01-26 04:51:19 +00:00
|
|
|
port: 3001
|
|
|
|
|
hmrClientPort: 3001
|