wikijs-fork/config.sample.yml

81 lines
2.3 KiB
YAML
Raw Normal View History

#######################################################################
# Wiki.js - CONFIGURATION #
#######################################################################
2017-12-17 04:41:16 +00:00
# Full documentation + examples:
2017-04-29 20:33:48 +00:00
# https://docs.requarks.io/wiki/install
2016-08-17 00:56:55 +00:00
# ---------------------------------------------------------------------
2017-10-22 17:30:16 +00:00
# Port the main server should listen to
# ---------------------------------------------------------------------
2016-08-17 00:56:55 +00:00
port: 80
# ---------------------------------------------------------------------
# Data Directories
# ---------------------------------------------------------------------
2016-08-17 00:56:55 +00:00
paths:
content: ./content
data: ./data
# ---------------------------------------------------------------------
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
# - mysql = MySQL 5.7.8 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 and MySQL 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
# ---------------------------------------------------------------------
2017-10-22 17:30:16 +00:00
# Redis
2017-10-22 17:24:43 +00:00
# ---------------------------------------------------------------------
2017-12-24 05:34:47 +00:00
# Redis 3.2 or later required
2017-10-22 17:24:43 +00:00
2017-10-22 17:30:16 +00:00
redis:
host: localhost
port: 6379
db: 0
password: null
2017-10-22 17:24:43 +00:00
2017-12-17 04:41:16 +00:00
# ---------------------------------------------------------------------
# Log Level
# ---------------------------------------------------------------------
# Possible values: error, warn, info (default), verbose, debug, silly
logLevel: info
# ---------------------------------------------------------------------
# Configuration Mode
# ---------------------------------------------------------------------
2017-12-24 05:34:47 +00:00
# Possible values: auto (default), file, setup
2017-12-24 05:34:47 +00:00
configMode: auto
2017-10-22 17:24:43 +00:00
# ---------------------------------------------------------------------
2017-10-22 17:30:16 +00:00
# Background Workers
2017-03-29 00:19:01 +00:00
# ---------------------------------------------------------------------
2017-10-22 17:30:16 +00:00
# Leave 0 for auto based on CPU cores
2017-03-29 00:19:01 +00:00
2017-10-22 17:30:16 +00:00
workers: 0
2017-03-29 00:19:01 +00:00
2017-07-09 03:59:24 +00:00
# ---------------------------------------------------------------------
2017-10-22 17:30:16 +00:00
# High Availability
2017-07-09 03:59:24 +00:00
# ---------------------------------------------------------------------
2017-10-22 17:30:16 +00:00
# Read the docs BEFORE changing these settings!
2017-07-09 03:59:24 +00:00
2017-10-22 17:30:16 +00:00
ha:
node: primary
uid: master
2017-10-22 17:30:16 +00:00
readonly: false