wikijs-fork/config.sample.yml

173 lines
4.8 KiB
YAML
Raw Normal View History

#######################################################################
# Wiki.js - CONFIGURATION #
#######################################################################
# Full explanation + examples in the documentation:
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:24:43 +00:00
# Title of this site
# ---------------------------------------------------------------------
2016-08-17 00:56:55 +00:00
2017-10-22 17:24:43 +00:00
title: Wiki
# ---------------------------------------------------------------------
# Full public path to the site, without the trailing slash
# ---------------------------------------------------------------------
# INCLUDE CLIENT PORT IF NOT 80/443!
host: http://localhost
# ---------------------------------------------------------------------
# Port the main server should listen to (80 by default)
# ---------------------------------------------------------------------
# To use process.env.PORT, comment the line below:
2016-08-17 00:56:55 +00:00
port: 80
# ---------------------------------------------------------------------
# Data Directories
# ---------------------------------------------------------------------
2016-08-17 00:56:55 +00:00
paths:
repo: ./repo
data: ./data
# ---------------------------------------------------------------------
2017-10-22 17:24:43 +00:00
# Upload Limits
# ---------------------------------------------------------------------
# In megabytes (MB)
uploads:
maxImageFileSize: 3
maxOtherFileSize: 100
# ---------------------------------------------------------------------
# Site Language
# ---------------------------------------------------------------------
# Possible values: en, de, es, fa, fr, ja, ko, nl, pt, ru, sr, tr or zh
lang: en
# Enable for right to left languages (e.g. arabic):
langRtl: false
# ---------------------------------------------------------------------
# Site Authentication
# ---------------------------------------------------------------------
public: false
auth:
defaultReadAccess: false
local:
enabled: true
google:
enabled: true
clientId: GOOGLE_CLIENT_ID
clientSecret: GOOGLE_CLIENT_SECRET
microsoft:
enabled: true
clientId: MS_APP_ID
clientSecret: MS_APP_SECRET
facebook:
enabled: false
clientId: FACEBOOK_APP_ID
clientSecret: FACEBOOK_APP_SECRET
github:
enabled: false
clientId: GITHUB_CLIENT_ID
clientSecret: GITHUB_CLIENT_SECRET
slack:
enabled: false
clientId: 'SLACK_CLIENT_ID'
clientSecret: 'SLACK_CLIENT_SECRET'
ldap:
enabled: false
url: ldap://serverhost:389
bindDn: cn='root'
bindCredentials: BIND_PASSWORD
searchBase: o=users,o=example.com
searchFilter: (uid={{username}})
tlsEnabled: false
tlsCertPath: C:\example\root_ca_cert.crt
azure:
enabled: false
clientId: APP_ID
clientSecret: APP_SECRET_KEY
resource: '00000002-0000-0000-c000-000000000000'
tenant: 'YOUR_TENANT.onmicrosoft.com'
# ---------------------------------------------------------------------
# Secret key to use when encrypting sessions
# ---------------------------------------------------------------------
# Use a long and unique random string (256-bit keys are perfect!)
sessionSecret: 1234567890abcdefghijklmnopqrstuvxyz
# ---------------------------------------------------------------------
# Database Connection String
# ---------------------------------------------------------------------
# You can also use an ENV variable by using $ENV_VAR_NAME as the value
db: mongodb://localhost:27017/wiki
# ---------------------------------------------------------------------
# Git Connection Info
# ---------------------------------------------------------------------
2016-08-20 04:50:29 +00:00
2017-10-22 17:24:43 +00:00
git:
url: https://github.com/Organization/Repo
branch: master
auth:
# Type: basic or ssh
type: ssh
# Only for Basic authentication:
username: marty
password: MartyMcFly88
# Only for SSH authentication:
privateKey: /etc/wiki/keys/git.pem
sslVerify: true
# Default email to use as commit author
serverEmail: marty@example.com
# Whether to use user email as author in commits
showUserEmail: true
2017-03-29 00:19:01 +00:00
# ---------------------------------------------------------------------
2017-10-22 17:24:43 +00:00
# Features
# ---------------------------------------------------------------------
2017-10-22 17:24:43 +00:00
# You can enable / disable specific features below
2017-10-22 17:24:43 +00:00
features:
linebreaks: true
mathjax: true
2017-03-29 00:19:01 +00:00
# ---------------------------------------------------------------------
2017-10-22 17:24:43 +00:00
# External Logging
2017-03-29 00:19:01 +00:00
# ---------------------------------------------------------------------
2017-10-22 17:24:43 +00:00
externalLogging:
bugsnag: false
loggly: false
papertrail: false
rollbar: false
sentry: false
2017-03-29 00:19:01 +00:00
2017-07-09 03:59:24 +00:00
# ---------------------------------------------------------------------
2017-10-22 17:24:43 +00:00
# Color Theme
2017-07-09 03:59:24 +00:00
# ---------------------------------------------------------------------
2017-10-22 17:24:43 +00:00
theme:
primary: indigo
alt: blue-grey
viewSource: all # all | write | false
footer: blue-grey
code:
dark: true
colorize: true