Files
wiki/config.sample.yml
T

112 lines
3.7 KiB
YAML
Raw Normal View History

#######################################################################
2016-12-08 22:44:31 -05:00
# Wiki.js - CONFIGURATION #
#######################################################################
2017-12-16 23:41:16 -05:00
# Full documentation + examples:
# https://next.js.wiki/docs/install
2016-08-16 20:56:55 -04:00
# ---------------------------------------------------------------------
2018-05-28 14:46:55 -04:00
# Port the server should listen to
# ---------------------------------------------------------------------
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
# ---------------------------------------------------------------------
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
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
# 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
# ---------------------------------------------------------------------
# Data Path
# ---------------------------------------------------------------------
2019-12-30 16:18:23 -05:00
# Writeable data path used for cache and temporary user uploads.
dataPath: ./data
# ---------------------------------------------------------------------
# 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'
# ---------------------------------------------------------------------
# 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))
2026-02-22 06:20:01 -05:00
bodyParserLimit: 5242880
2022-09-24 06:08:34 +00:00
# ---------------------------------------------------------------------
# Scheduler
2022-09-24 06:08:34 +00:00
# ---------------------------------------------------------------------
scheduler:
# Maximum number of workers to run background cpu-intensive jobs.
# 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