Environment variables

Simon Bartlett edited this page Dec 17, 2015 · 7 revisions

Below are mappings between the YAML configuration and environment variables.

General

YAML Path Env Variable
env LCB_ENV
database.uri LCB_DATABASE_URI
secrets.cookie LCB_SECRETS_COOKIE

HTTP

YAML Path Env Variable
http.enable LCB_HTTP_ENABLE
http.port LCB_HTTP_PORT
http.host LCB_HTTP_HOST

HTTPS

YAML Path Env Variable
https.enable LCB_HTTPS_ENABLE
https.port LCB_HTTPS_PORT
https.host LCB_HTTPS_HOST
https.key LCB_HTTPS_KEY
https.cert LCB_HTTPS_CERT

XMPP

YAML Path Env Variable
xmpp.enable LCB_XMPP_ENABLE
xmpp.debug.handled LCB_XMPP_DEBUG_HANDLED
xmpp.debug.unhandled LCB_XMPP_DEBUG_UNHANDLED
xmpp.port LCB_XMPP_PORT
xmpp.domain LCB_XMPP_DOMAIN
xmpp.tls.enable LCB_XMPP_TLS_ENABLE
xmpp.tls.key LCB_XMPP_TLS_KEY
xmpp.tls.cert LCB_XMPP_TLS_CERT
xmpp.roomCreation LCB_XMPP_ROOM_CREATION

Files

YAML Path Env Variable
files.enable LCB_FILES_ENABLE
files.provider LCB_FILES_PROVIDER
files.allowedTypes LCB_FILES_ALLOWED_TYPES

Local

YAML Path Env Variable
files.local.dir LCB_FILES_LOCAL_DIR

Authentication

YAML Path Env Variable
auth.providers LCB_AUTH_PROVIDERS
auth.throttling.enable LCB_AUTH_THROTTLING_ENABLE
auth.throttling.threshold LCB_AUTH_THROTTLING_THRESHOLD

Local

YAML Path Env Variable
auth.local.enableRegistration LCB_AUTH_LOCAL_ENABLE_REGISTRATION
auth.local.passwordRegex LCB_AUTH_LOCAL_PASSWORD_REGEX
auth.local.salt LCB_AUTH_LOCAL_SALT