2019-01-29 21:56:56 +01:00
|
|
|
#######################################################################
|
|
|
|
# Wiki.js - CONFIGURATION #
|
|
|
|
#######################################################################
|
|
|
|
# Full documentation + examples:
|
2019-05-28 23:09:29 +02:00
|
|
|
# https://docs-beta.requarks.io/install
|
2019-01-29 21:56:56 +01:00
|
|
|
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Port the server should listen to
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
|
2019-01-30 00:11:52 +01:00
|
|
|
port: __PORT__
|
2019-01-29 21:56:56 +01:00
|
|
|
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Database
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Supported Database Engines:
|
|
|
|
# - postgres = PostgreSQL 9.5 or later
|
2019-05-28 23:09:29 +02:00
|
|
|
# - mysql = MySQL 8.0 or later (5.7.8 partially supported, refer to docs)
|
2019-01-29 21:56:56 +01:00
|
|
|
# - mariadb = MariaDB 10.2.7 or later
|
|
|
|
# - mssql = MS SQL Server 2012 or later
|
|
|
|
# - sqlite = SQLite 3.9 or later
|
|
|
|
|
|
|
|
db:
|
2019-01-30 02:25:32 +01:00
|
|
|
type: postgres
|
2019-01-29 21:56:56 +01:00
|
|
|
# PostgreSQL / MySQL / MariaDB / MS SQL Server only:
|
2019-01-30 01:41:05 +01:00
|
|
|
host: localhost
|
2019-01-30 00:59:43 +01:00
|
|
|
port: 5432
|
2019-01-29 22:07:31 +01:00
|
|
|
user: __DB_NAME__
|
2019-01-29 21:56:56 +01:00
|
|
|
pass: __DB_PWD__
|
|
|
|
db: __DB_NAME__
|
2019-07-15 21:01:19 +02:00
|
|
|
ssl: false
|
2019-01-29 21:56:56 +01:00
|
|
|
# SQLite only:
|
|
|
|
storage: path/to/database.sqlite
|
|
|
|
|
2019-02-21 18:34:49 +01:00
|
|
|
#######################################################################
|
|
|
|
# ADVANCED OPTIONS #
|
|
|
|
#######################################################################
|
|
|
|
# Do not change unless you know what you are doing!
|
|
|
|
|
2019-01-29 21:56:56 +01:00
|
|
|
# ---------------------------------------------------------------------
|
2019-02-21 18:34:49 +01:00
|
|
|
# Use X-Forwarded-For header
|
2019-01-29 21:56:56 +01:00
|
|
|
# ---------------------------------------------------------------------
|
2019-02-21 18:34:49 +01:00
|
|
|
# Enable only if Wiki.js is behind a reverse-proxy (nginx, apache, etc)
|
|
|
|
# or a cloud proxying services like Cloudflare.
|
2019-01-29 21:56:56 +01:00
|
|
|
|
2019-03-15 00:40:24 +01:00
|
|
|
trustProxy: true
|
2019-02-21 18:34:49 +01:00
|
|
|
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# SSL/TLS Settings
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Consider using a reverse proxy (e.g. nginx) if you require more
|
|
|
|
# advanced options than those provided below.
|
|
|
|
|
|
|
|
ssl:
|
|
|
|
enabled: false
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2019-03-17 22:28:09 +01:00
|
|
|
# Listen on this HTTP port and redirect all requests to HTTPS.
|
|
|
|
# Set to false to disable (default: 80):
|
|
|
|
redirectNonSSLPort: 80
|
|
|
|
|
2019-05-28 23:09:29 +02:00
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Database Pool Options
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Refer to https://github.com/vincit/tarn.js for all possible options
|
|
|
|
|
|
|
|
pool:
|
|
|
|
# min: 2
|
|
|
|
# max: 10
|
|
|
|
|
2019-02-21 18:34:49 +01:00
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# IP address the server should listen to
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Leave 0.0.0.0 for all interfaces
|
|
|
|
|
|
|
|
bindIP: 0.0.0.0
|
2019-01-29 21:56:56 +01:00
|
|
|
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Log Level
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Possible values: error, warn, info (default), verbose, debug, silly
|
|
|
|
|
|
|
|
logLevel: info
|
2019-05-28 23:09:29 +02:00
|
|
|
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Upload Limits
|
|
|
|
# ---------------------------------------------------------------------
|
2019-06-23 01:31:54 +02:00
|
|
|
# If you're using a reverse-proxy in front of Wiki.js, you must also
|
2019-05-28 23:09:29 +02:00
|
|
|
# change your proxy upload limits!
|
|
|
|
|
|
|
|
uploads:
|
|
|
|
# Maximum upload size in bytes per file (default: 5242880 (5 MB))
|
|
|
|
maxFileSize: 5242880
|
|
|
|
# Maximum file uploads per request (default: 20)
|
|
|
|
maxFiles: 10
|
2019-06-23 01:31:54 +02:00
|
|
|
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Offline Mode
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# If your server cannot access the internet. Set to true and manually
|
|
|
|
# download the offline files for sideloading.
|
|
|
|
|
|
|
|
offline: false
|