config.sample.yml 4.39 KB
Newer Older
1
#######################################################################
2
# Wiki.js - CONFIGURATION                                             #
3 4
#######################################################################
# Full explanation + examples in the documentation:
5
# https://docs.requarks.io/wiki/install
NGPixel's avatar
NGPixel committed
6

7
# ---------------------------------------------------------------------
NGPixel's avatar
NGPixel committed
8
# Title of this site
9
# ---------------------------------------------------------------------
NGPixel's avatar
NGPixel committed
10 11 12

title: Wiki

13 14 15
# ---------------------------------------------------------------------
# Full public path to the site, without the trailing slash
# ---------------------------------------------------------------------
NGPixel's avatar
NGPixel committed
16 17 18

host: http://localhost

19 20 21
# ---------------------------------------------------------------------
# Port the main server should listen to (80 by default)
# ---------------------------------------------------------------------
NGPixel's avatar
NGPixel committed
22 23 24 25
# To use process.env.PORT, comment the line below:

port: 80

26
# ---------------------------------------------------------------------
27
# Data Directories
28
# ---------------------------------------------------------------------
NGPixel's avatar
NGPixel committed
29

30
paths:
31
  repo: ./repo
32 33
  data: ./data

34 35 36 37 38 39 40 41 42
# ---------------------------------------------------------------------
# Upload Limits
# ---------------------------------------------------------------------
# In megabytes (MB)

uploads:
  maxImageFileSize: 3
  maxOtherFileSize: 100

43 44 45
# ---------------------------------------------------------------------
# Site Language
# ---------------------------------------------------------------------
46
# Possible values: en, de, es, fr, ko, pt or ru
47 48 49

lang: en

50 51 52 53
# ---------------------------------------------------------------------
# Site Authentication
# ---------------------------------------------------------------------

54 55
public: false

56
auth:
57
  defaultReadAccess: false
58 59 60 61 62 63 64 65 66 67 68 69 70 71
  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
72 73 74 75 76 77 78 79 80 81
  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
82 83 84 85 86 87 88
    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
89 90 91
  azure:
    enabled: false
    clientID: APP_ID
92 93
    clientSecret: APP_SECRET_KEY
    resource: '00000002-0000-0000-c000-000000000000'
94
    tenant: 'YOUR_TENANT.onmicrosoft.com'
95

96 97 98 99 100 101 102 103
# ---------------------------------------------------------------------
# Secret key to use when encrypting sessions
# ---------------------------------------------------------------------
# Use a long and unique random string (256-bit keys are perfect!)

sessionSecret: 1234567890abcdefghijklmnopqrstuvxyz

# ---------------------------------------------------------------------
104 105
# Database Connection String
# ---------------------------------------------------------------------
106
# You can also use an ENV variable by using $ENV_VAR_NAME as the value
107 108

db: mongodb://localhost:27017/wiki
NGPixel's avatar
NGPixel committed
109

110
# ---------------------------------------------------------------------
NGPixel's avatar
NGPixel committed
111
# Git Connection Info
112
# ---------------------------------------------------------------------
NGPixel's avatar
NGPixel committed
113 114 115

git:
  url: https://github.com/Organization/Repo
NGPixel's avatar
NGPixel committed
116
  branch: master
NGPixel's avatar
NGPixel committed
117
  auth:
118

119
    # Type: basic or ssh
NGPixel's avatar
NGPixel committed
120
    type: ssh
121

122
    # Only for Basic authentication:
123 124 125 126
    username: marty
    password: MartyMcFly88

    # Only for SSH authentication:
127
    privateKey: /etc/wiki/keys/git.pem
128

129
    sslVerify: true
130 131 132 133 134 135

  # Default email to use as commit author
  serverEmail: marty@example.com

  # Whether to use user email as author in commits
  showUserEmail: true
136

137 138 139 140 141 142 143 144
# ---------------------------------------------------------------------
# Features
# ---------------------------------------------------------------------
# You can enable / disable specific features below

features:
  mathjax: true

145 146 147 148 149 150 151 152 153
# ---------------------------------------------------------------------
# External Logging
# ---------------------------------------------------------------------

externalLogging:
  bugsnag: false
  loggly: false
  papertrail: false
  rollbar: false
154
  sentry: false
155