mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
155 lines
4.3 KiB
155 lines
4.3 KiB
#######################################################################
|
|
# Wiki.js - CONFIGURATION #
|
|
#######################################################################
|
|
# Full explanation + examples in the documentation:
|
|
# https://docs.requarks.io/wiki/install
|
|
|
|
# ---------------------------------------------------------------------
|
|
# Title of this site
|
|
# ---------------------------------------------------------------------
|
|
|
|
title: $(WIKI_TITLE)
|
|
|
|
# ---------------------------------------------------------------------
|
|
# Full public path to the site, without the trailing slash
|
|
# ---------------------------------------------------------------------
|
|
|
|
host: $(WIKI_HOST)
|
|
|
|
# ---------------------------------------------------------------------
|
|
# Port the main server should listen to (80 by default)
|
|
# ---------------------------------------------------------------------
|
|
|
|
port: $(PORT)
|
|
|
|
# ---------------------------------------------------------------------
|
|
# Data Directories
|
|
# ---------------------------------------------------------------------
|
|
|
|
paths:
|
|
repo: ./repo
|
|
data: ./data
|
|
|
|
# ---------------------------------------------------------------------
|
|
# Upload Limits
|
|
# ---------------------------------------------------------------------
|
|
# In megabytes (MB)
|
|
|
|
uploads:
|
|
maxImageFileSize: 3
|
|
maxOtherFileSize: 100
|
|
|
|
# ---------------------------------------------------------------------
|
|
# Site Language
|
|
# ---------------------------------------------------------------------
|
|
# Possible values: en, es, fr, ko, ru or zh
|
|
|
|
lang: $(WIKI_LANG)
|
|
|
|
# ---------------------------------------------------------------------
|
|
# Site Authentication
|
|
# ---------------------------------------------------------------------
|
|
|
|
public: $(WIKI_PUBLIC)
|
|
|
|
auth:
|
|
defaultReadAccess: false
|
|
local:
|
|
enabled: true
|
|
google:
|
|
enabled: false
|
|
clientId: GOOGLE_CLIENT_ID
|
|
clientSecret: GOOGLE_CLIENT_SECRET
|
|
microsoft:
|
|
enabled: false
|
|
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: $(WIKI_SESSION_KEY)
|
|
|
|
# ---------------------------------------------------------------------
|
|
# Database Connection String
|
|
# ---------------------------------------------------------------------
|
|
|
|
db: $(MONGODB_URI)
|
|
|
|
# ---------------------------------------------------------------------
|
|
# Git Connection Info
|
|
# ---------------------------------------------------------------------
|
|
|
|
git:
|
|
url: $(WIKI_GIT_URL)
|
|
branch: $(WIKI_GIT_BRANCH)
|
|
auth:
|
|
|
|
# Type: basic or ssh
|
|
type: basic
|
|
|
|
# Only for Basic authentication:
|
|
username: $(WIKI_GIT_USERNAME)
|
|
password: $(WIKI_GIT_PASSWORD)
|
|
|
|
# Only for SSH authentication:
|
|
privateKey: /etc/wiki/keys/git.pem
|
|
|
|
sslVerify: true
|
|
|
|
# Default email to use as commit author
|
|
serverEmail: $(WIKI_SERVER_EMAIL)
|
|
|
|
# Whether to use user email as author in commits
|
|
showUserEmail: $(WIKI_SHOW_USER_EMAIL)
|
|
|
|
# ---------------------------------------------------------------------
|
|
# Features
|
|
# ---------------------------------------------------------------------
|
|
# You can enable / disable specific features below
|
|
|
|
features:
|
|
linebreaks: true
|
|
mathjax: true
|
|
|
|
# ---------------------------------------------------------------------
|
|
# External Logging
|
|
# ---------------------------------------------------------------------
|
|
|
|
externalLogging:
|
|
bugsnag: false
|
|
loggly: false
|
|
papertrail: false
|
|
rollbar: false
|
|
sentry: false
|
|
|