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