2016-09-05 04:39:59 +00:00
|
|
|
#######################################################################
|
2016-12-09 03:44:31 +00:00
|
|
|
# Wiki.js - CONFIGURATION #
|
2016-09-05 04:39:59 +00:00
|
|
|
#######################################################################
|
|
|
|
# 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
|
|
|
|
2016-09-05 04:39:59 +00:00
|
|
|
# ---------------------------------------------------------------------
|
2016-08-17 00:56:55 +00:00
|
|
|
# Title of this site
|
2016-09-05 04:39:59 +00:00
|
|
|
# ---------------------------------------------------------------------
|
2016-08-17 00:56:55 +00:00
|
|
|
|
|
|
|
title: Wiki
|
|
|
|
|
2016-09-05 04:39:59 +00:00
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Full public path to the site, without the trailing slash
|
|
|
|
# ---------------------------------------------------------------------
|
2017-07-20 22:17:23 +00:00
|
|
|
# INCLUDE CLIENT PORT IF NOT 80/443!
|
2016-08-17 00:56:55 +00:00
|
|
|
|
|
|
|
host: http://localhost
|
|
|
|
|
2016-09-05 04:39:59 +00:00
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Port the main server should listen to (80 by default)
|
|
|
|
# ---------------------------------------------------------------------
|
2016-08-17 00:56:55 +00:00
|
|
|
# To use process.env.PORT, comment the line below:
|
|
|
|
|
|
|
|
port: 80
|
|
|
|
|
2016-09-05 04:39:59 +00:00
|
|
|
# ---------------------------------------------------------------------
|
2016-08-22 03:18:31 +00:00
|
|
|
# Data Directories
|
2016-09-05 04:39:59 +00:00
|
|
|
# ---------------------------------------------------------------------
|
2016-08-17 00:56:55 +00:00
|
|
|
|
2016-10-15 03:31:15 +00:00
|
|
|
paths:
|
2016-08-27 05:04:08 +00:00
|
|
|
repo: ./repo
|
2016-10-15 03:31:15 +00:00
|
|
|
data: ./data
|
|
|
|
|
2016-12-22 01:38:12 +00:00
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Upload Limits
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# In megabytes (MB)
|
|
|
|
|
|
|
|
uploads:
|
|
|
|
maxImageFileSize: 3
|
|
|
|
maxOtherFileSize: 100
|
|
|
|
|
2016-12-09 03:44:31 +00:00
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Site Language
|
|
|
|
# ---------------------------------------------------------------------
|
2017-05-19 00:36:25 +00:00
|
|
|
# Possible values: en, es, fr, ko, ru or zh
|
2016-12-09 03:44:31 +00:00
|
|
|
|
|
|
|
lang: en
|
|
|
|
|
2016-10-30 22:41:10 +00:00
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Site Authentication
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
|
2016-12-06 02:42:41 +00:00
|
|
|
public: false
|
|
|
|
|
2016-10-30 22:41:10 +00:00
|
|
|
auth:
|
2017-04-10 01:13:53 +00:00
|
|
|
defaultReadAccess: false
|
2016-10-30 22:41:10 +00:00
|
|
|
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
|
2017-02-24 21:50:04 +00:00
|
|
|
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
|
2017-02-26 23:06:20 +00:00
|
|
|
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
|
2017-04-10 01:13:53 +00:00
|
|
|
azure:
|
|
|
|
enabled: false
|
2017-08-25 01:28:36 +00:00
|
|
|
clientId: APP_ID
|
2017-04-29 17:28:27 +00:00
|
|
|
clientSecret: APP_SECRET_KEY
|
|
|
|
resource: '00000002-0000-0000-c000-000000000000'
|
2017-04-10 01:13:53 +00:00
|
|
|
tenant: 'YOUR_TENANT.onmicrosoft.com'
|
2016-10-30 22:41:10 +00:00
|
|
|
|
2016-12-09 03:44:31 +00:00
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Secret key to use when encrypting sessions
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Use a long and unique random string (256-bit keys are perfect!)
|
|
|
|
|
|
|
|
sessionSecret: 1234567890abcdefghijklmnopqrstuvxyz
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------
|
2016-10-15 03:31:15 +00:00
|
|
|
# Database Connection String
|
|
|
|
# ---------------------------------------------------------------------
|
2017-03-31 01:53:21 +00:00
|
|
|
# You can also use an ENV variable by using $ENV_VAR_NAME as the value
|
2016-10-15 03:31:15 +00:00
|
|
|
|
|
|
|
db: mongodb://localhost:27017/wiki
|
2016-08-17 00:56:55 +00:00
|
|
|
|
2016-09-05 04:39:59 +00:00
|
|
|
# ---------------------------------------------------------------------
|
2016-08-20 04:50:29 +00:00
|
|
|
# Git Connection Info
|
2016-09-05 04:39:59 +00:00
|
|
|
# ---------------------------------------------------------------------
|
2016-08-20 04:50:29 +00:00
|
|
|
|
|
|
|
git:
|
|
|
|
url: https://github.com/Organization/Repo
|
2016-08-25 02:10:03 +00:00
|
|
|
branch: master
|
2016-08-20 04:50:29 +00:00
|
|
|
auth:
|
2016-08-27 05:04:08 +00:00
|
|
|
|
2017-02-11 21:21:50 +00:00
|
|
|
# Type: basic or ssh
|
2016-08-20 04:50:29 +00:00
|
|
|
type: ssh
|
2016-08-27 05:04:08 +00:00
|
|
|
|
2017-02-11 21:21:50 +00:00
|
|
|
# Only for Basic authentication:
|
2016-08-27 05:04:08 +00:00
|
|
|
username: marty
|
|
|
|
password: MartyMcFly88
|
|
|
|
|
|
|
|
# Only for SSH authentication:
|
2016-12-09 03:44:31 +00:00
|
|
|
privateKey: /etc/wiki/keys/git.pem
|
2017-02-11 21:21:50 +00:00
|
|
|
|
2016-12-16 05:06:35 +00:00
|
|
|
sslVerify: true
|
2017-04-26 02:04:11 +00:00
|
|
|
|
|
|
|
# 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-06-24 20:08:55 +00:00
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Features
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# You can enable / disable specific features below
|
|
|
|
|
|
|
|
features:
|
|
|
|
linebreaks: true
|
|
|
|
mathjax: true
|
|
|
|
|
2017-03-29 00:19:01 +00:00
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# External Logging
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
|
|
|
|
externalLogging:
|
|
|
|
bugsnag: false
|
|
|
|
loggly: false
|
|
|
|
papertrail: false
|
|
|
|
rollbar: false
|
2017-03-30 01:49:30 +00:00
|
|
|
sentry: false
|
2017-03-29 00:19:01 +00:00
|
|
|
|
2017-07-09 03:59:24 +00:00
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Color Theme
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
|
|
|
|
theme:
|
|
|
|
primary: indigo
|
|
|
|
alt: blue-grey
|
2017-08-28 17:25:17 +00:00
|
|
|
viewSource: all # all | write | false
|
2017-07-09 03:59:24 +00:00
|
|
|
footer: blue-grey
|
|
|
|
code:
|
|
|
|
dark: true
|
|
|
|
colorize: true
|