2017-04-29 00:37:43 +00:00
|
|
|
#######################################################################
|
|
|
|
# Wiki.js - CONFIGURATION #
|
|
|
|
#######################################################################
|
|
|
|
# Full explanation + examples in the documentation:
|
2017-04-29 20:33:48 +00:00
|
|
|
# https://docs.requarks.io/wiki/install
|
2017-04-29 00:37:43 +00:00
|
|
|
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Title of this site
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
|
2017-05-15 04:09:44 +00:00
|
|
|
title: $(WIKI_TITLE)
|
2017-04-29 00:37:43 +00:00
|
|
|
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Full public path to the site, without the trailing slash
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
|
2017-05-15 04:09:44 +00:00
|
|
|
host: $(WIKI_HOST)
|
2017-04-29 00:37:43 +00:00
|
|
|
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Port the main server should listen to (80 by default)
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
|
2017-05-13 14:41:33 +00:00
|
|
|
port: $(PORT)
|
2017-04-29 00:37:43 +00:00
|
|
|
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Data Directories
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
|
|
|
|
paths:
|
|
|
|
repo: ./repo
|
|
|
|
data: ./data
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Upload Limits
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# In megabytes (MB)
|
|
|
|
|
|
|
|
uploads:
|
|
|
|
maxImageFileSize: 3
|
|
|
|
maxOtherFileSize: 100
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Site Language
|
|
|
|
# ---------------------------------------------------------------------
|
2017-04-29 20:33:48 +00:00
|
|
|
# Possible values: en, de, es, fr, ko, pt or ru
|
2017-04-29 00:37:43 +00:00
|
|
|
|
2017-05-15 04:09:44 +00:00
|
|
|
lang: $(WIKI_LANG)
|
2017-04-29 00:37:43 +00:00
|
|
|
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Site Authentication
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
|
2017-05-15 04:09:44 +00:00
|
|
|
public: $(WIKI_PUBLIC)
|
2017-04-29 00:37:43 +00:00
|
|
|
|
|
|
|
auth:
|
|
|
|
defaultReadAccess: false
|
|
|
|
local:
|
|
|
|
enabled: true
|
|
|
|
google:
|
2017-05-16 02:00:01 +00:00
|
|
|
enabled: false
|
2017-04-29 00:37:43 +00:00
|
|
|
clientId: GOOGLE_CLIENT_ID
|
|
|
|
clientSecret: GOOGLE_CLIENT_SECRET
|
|
|
|
microsoft:
|
2017-05-16 02:00:01 +00:00
|
|
|
enabled: false
|
2017-04-29 00:37:43 +00:00
|
|
|
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
|
2017-04-29 17:28:27 +00:00
|
|
|
clientSecret: APP_SECRET_KEY
|
|
|
|
resource: '00000002-0000-0000-c000-000000000000'
|
2017-04-29 00:37:43 +00:00
|
|
|
tenant: 'YOUR_TENANT.onmicrosoft.com'
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Secret key to use when encrypting sessions
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Use a long and unique random string (256-bit keys are perfect!)
|
|
|
|
|
2017-05-15 04:09:44 +00:00
|
|
|
sessionSecret: $(WIKI_SESSION_KEY)
|
2017-04-29 00:37:43 +00:00
|
|
|
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Database Connection String
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
|
2017-05-15 01:20:40 +00:00
|
|
|
db: $(MONGODB_URI)
|
2017-04-29 00:37:43 +00:00
|
|
|
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Git Connection Info
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
|
|
|
|
git:
|
2017-05-15 04:09:44 +00:00
|
|
|
url: $(WIKI_GIT_URL)
|
|
|
|
branch: $(WIKI_GIT_BRANCH)
|
2017-04-29 00:37:43 +00:00
|
|
|
auth:
|
|
|
|
|
|
|
|
# Type: basic or ssh
|
2017-05-15 04:09:44 +00:00
|
|
|
type: basic
|
2017-04-29 00:37:43 +00:00
|
|
|
|
|
|
|
# Only for Basic authentication:
|
2017-05-15 04:09:44 +00:00
|
|
|
username: $(WIKI_GIT_USERNAME)
|
|
|
|
password: $(WIKI_GIT_PASSWORD)
|
2017-04-29 00:37:43 +00:00
|
|
|
|
|
|
|
# Only for SSH authentication:
|
|
|
|
privateKey: /etc/wiki/keys/git.pem
|
|
|
|
|
|
|
|
sslVerify: true
|
|
|
|
|
|
|
|
# Default email to use as commit author
|
2017-05-15 04:09:44 +00:00
|
|
|
serverEmail: $(WIKI_SERVER_EMAIL)
|
2017-04-29 00:37:43 +00:00
|
|
|
|
|
|
|
# Whether to use user email as author in commits
|
2017-05-15 04:09:44 +00:00
|
|
|
showUserEmail: $(WIKI_SHOW_USER_EMAIL)
|
2017-04-29 00:37:43 +00:00
|
|
|
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# Features
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# You can enable / disable specific features below
|
|
|
|
|
|
|
|
features:
|
|
|
|
mathjax: true
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
# External Logging
|
|
|
|
# ---------------------------------------------------------------------
|
|
|
|
|
|
|
|
externalLogging:
|
|
|
|
bugsnag: false
|
|
|
|
loggly: false
|
|
|
|
papertrail: false
|
|
|
|
rollbar: false
|
|
|
|
sentry: false
|
|
|
|
|