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:
|
2017-04-29 16:33:48 -04:00
|
|
|
# https://docs.requarks.io/wiki/install
|
2016-08-16 20:56:55 -04:00
|
|
|
|
2016-09-05 00:39:59 -04:00
|
|
|
# ---------------------------------------------------------------------
|
2017-10-22 13:30:16 -04:00
|
|
|
# Port the main server should listen to
|
2016-09-05 00:39:59 -04:00
|
|
|
# ---------------------------------------------------------------------
|
2016-08-16 20:56:55 -04:00
|
|
|
|
|
|
|
port: 80
|
|
|
|
|
2016-09-05 00:39:59 -04:00
|
|
|
# ---------------------------------------------------------------------
|
2016-08-21 23:18:31 -04:00
|
|
|
# Data Directories
|
2016-09-05 00:39:59 -04:00
|
|
|
# ---------------------------------------------------------------------
|
2016-08-16 20:56:55 -04:00
|
|
|
|
2016-10-14 23:31:15 -04:00
|
|
|
paths:
|
2018-03-11 00:11:32 -05:00
|
|
|
content: ./content
|
2016-10-14 23:31:15 -04:00
|
|
|
data: ./data
|
|
|
|
|
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
|
|
|
# ---------------------------------------------------------------------
|
2018-03-24 22:35:47 -04:00
|
|
|
# Supported Database Engines:
|
|
|
|
# - postgres = PostgreSQL 9.5 or later
|
|
|
|
# - mysql = MySQL 5.7.8 or later
|
|
|
|
# - sqlite = SQLite 3.9 or later
|
2017-10-22 13:24:43 -04:00
|
|
|
|
2017-10-22 13:30:16 -04:00
|
|
|
db:
|
2018-03-24 22:35:47 -04:00
|
|
|
type: postgres
|
|
|
|
# PostgreSQL and MySQL only:
|
2017-10-22 13:30:16 -04:00
|
|
|
host: localhost
|
|
|
|
port: 5432
|
|
|
|
user: wikijs
|
|
|
|
pass: wikijsrocks
|
|
|
|
db: wiki
|
2018-03-24 22:35:47 -04:00
|
|
|
# SQLite only:
|
|
|
|
storage: path/to/database.sqlite
|
2017-10-22 13:24:43 -04:00
|
|
|
|
|
|
|
# ---------------------------------------------------------------------
|
2017-10-22 13:30:16 -04:00
|
|
|
# Redis
|
2017-10-22 13:24:43 -04:00
|
|
|
# ---------------------------------------------------------------------
|
2017-12-24 00:34:47 -05:00
|
|
|
# Redis 3.2 or later required
|
2017-10-22 13:24:43 -04:00
|
|
|
|
2017-10-22 13:30:16 -04:00
|
|
|
redis:
|
|
|
|
host: localhost
|
|
|
|
port: 6379
|
|
|
|
db: 0
|
|
|
|
password: null
|
2017-10-22 13:24:43 -04:00
|
|
|
|
2017-12-16 23:41:16 -05:00
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Log Level
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Possible values: error, warn, info (default), verbose, debug, silly
|
|
|
|
|
|
|
|
logLevel: info
|
|
|
|
|
2017-11-19 17:08:23 -05:00
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Configuration Mode
|
|
|
|
# ---------------------------------------------------------------------
|
2017-12-24 00:34:47 -05:00
|
|
|
# Possible values: auto (default), file, setup
|
2017-11-19 17:08:23 -05:00
|
|
|
|
2017-12-24 00:34:47 -05:00
|
|
|
configMode: auto
|
2017-10-22 13:24:43 -04:00
|
|
|
|
|
|
|
# ---------------------------------------------------------------------
|
2017-10-22 13:30:16 -04:00
|
|
|
# Background Workers
|
2017-03-28 20:19:01 -04:00
|
|
|
# ---------------------------------------------------------------------
|
2017-10-22 13:30:16 -04:00
|
|
|
# Leave 0 for auto based on CPU cores
|
2017-03-28 20:19:01 -04:00
|
|
|
|
2017-10-22 13:30:16 -04:00
|
|
|
workers: 0
|
2017-03-28 20:19:01 -04:00
|
|
|
|
2017-07-08 23:59:24 -04:00
|
|
|
# ---------------------------------------------------------------------
|
2017-10-22 13:30:16 -04:00
|
|
|
# High Availability
|
2017-07-08 23:59:24 -04:00
|
|
|
# ---------------------------------------------------------------------
|
2017-10-22 13:30:16 -04:00
|
|
|
# Read the docs BEFORE changing these settings!
|
2017-07-08 23:59:24 -04:00
|
|
|
|
2017-10-22 13:30:16 -04:00
|
|
|
ha:
|
2017-11-19 17:08:23 -05:00
|
|
|
node: primary
|
2018-04-29 17:55:36 -04:00
|
|
|
uid: master
|
2017-10-22 13:30:16 -04:00
|
|
|
readonly: false
|