wikijs-fork/config.sample.yml

107 lines
3.5 KiB
YAML
Raw Normal View History

#######################################################################
# Wiki.js - CONFIGURATION #
#######################################################################
2017-12-17 04:41:16 +00:00
# Full documentation + examples:
# https://docs-beta.requarks.io/install
2016-08-17 00:56:55 +00:00
# ---------------------------------------------------------------------
2018-05-28 18:46:55 +00:00
# Port the server should listen to
# ---------------------------------------------------------------------
2016-08-17 00:56:55 +00:00
2018-11-04 17:55:21 +00:00
port: 3000
2016-08-17 00:56:55 +00:00
# ---------------------------------------------------------------------
2017-10-22 17:30:16 +00:00
# Database
2017-10-22 17:24:43 +00:00
# ---------------------------------------------------------------------
# Supported Database Engines:
# - postgres = PostgreSQL 9.5 or later
2018-09-08 19:49:36 +00:00
# - mysql = MySQL 5.7.8
# - mariadb = MariaDB 10.2.7 or later
# - mssql = MS SQL Server 2012 or later
# - sqlite = SQLite 3.9 or later
2017-10-22 17:24:43 +00:00
2017-10-22 17:30:16 +00:00
db:
type: postgres
# PostgreSQL / MySQL / MariaDB / MS SQL Server only:
2017-10-22 17:30:16 +00:00
host: localhost
port: 5432
user: wikijs
pass: wikijsrocks
db: wiki
# SQLite only:
storage: path/to/database.sqlite
2017-10-22 17:24:43 +00:00
2019-01-30 06:30:05 +00:00
#######################################################################
# ADVANCED OPTIONS #
#######################################################################
# Do not change unless you know what you are doing!
# ---------------------------------------------------------------------
# Use X-Forwarded-For header
# ---------------------------------------------------------------------
# Enable only if Wiki.js is behind a reverse-proxy (nginx, apache, etc)
# or a cloud proxying services like Cloudflare.
trustProxy: false
2019-01-30 06:30:05 +00: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
# Listen on this HTTP port and redirect all requests to HTTPS.
# Set to false to disable (default: 80):
redirectNonSSLPort: 80
# ---------------------------------------------------------------------
# Database Pool Options
# ---------------------------------------------------------------------
# Refer to https://github.com/vincit/tarn.js for all possible options
pool:
# min: 2
# max: 10
2019-01-30 06:30:05 +00:00
# ---------------------------------------------------------------------
# IP address the server should listen to
# ---------------------------------------------------------------------
# Leave 0.0.0.0 for all interfaces
bindIP: 0.0.0.0
2017-12-17 04:41:16 +00:00
# ---------------------------------------------------------------------
# Log Level
# ---------------------------------------------------------------------
# Possible values: error, warn, info (default), verbose, debug, silly
logLevel: info
# ---------------------------------------------------------------------
# Upload Limits
# ---------------------------------------------------------------------
# If you're using a reverse-proxy in front of Wiki.ks, you must also
# 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