Skip to content

Environment variables

Simon Bartlett edited this page Feb 6, 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

HTTPS

YAML Path Env Variable
https.enable LCB_HTTPS_ENABLE
https.port LCB_HTTPS_PORT
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.host LCB_XMPP_HOST
xmpp.tls.enable LCB_XMPP_TLS_ENABLE
xmpp.tls.key LCB_XMPP_TLS_KEY
xmpp.tls.cert LCB_XMPP_TLS_CERT

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

S3

YAML Path Env Variable
files.s3.accessKeyId LCB_FILES_S3_ACCESS_KEY_ID
files.s3.secretAccessKey LCB_FILES_S3_SECRET_ACCESS_KEY
files.s3.bucket LCB_FILES_S3_BUCKET
files.s3.region LCB_FILES_S3_REGION

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

Kerberos

YAML Path Env Variable
LCB_AUTH_KERBEROS_REALM
LCB_AUTH_KERBEROS_USE_LDAP_AUTHORIZATION
LCB_AUTH_KERBEROS_LDAP_CONNECT_SETTINGS_URL
LCB_AUTH_KERBEROS_LDAP_CONNECT_SETTINGS_TLS_OPTIONS_CA
LCB_AUTH_KERBEROS_LDAP_SERVER_CERTS
LCB_AUTH_KERBEROS_LDAP_BIND_OPTIONS_BIND_DN
LCB_AUTH_KERBEROS_LDAP_BIND_OPTIONS_BIND_CREDENTIALS
LCB_AUTH_KERBEROS_LDAP_SEARCH_BASE
LCB_AUTH_KERBEROS_LDAP_SEARCH_OPTS_SCOPE
LCB_AUTH_KERBEROS_LDAP_SEARCH_OPTS_FILTER
LCB_AUTH_KERBEROS_LDAP_FIELD_MAPPINGS_UID
LCB_AUTH_KERBEROS_LDAP_FIELD_MAPPINGS_FIRST_NAME
LCB_AUTH_KERBEROS_LDAP_FIELD_MAPPINGS_LAST_NAME
LCB_AUTH_KERBEROS_LDAP_FIELD_MAPPINGS_DISPLAY_NAME
LCB_AUTH_KERBEROS_LDAP_FIELD_MAPPINGS_EMAIL

LDAP

YAML Path Env Variable
LCB_AUTH_LDAP_CONNECT_SETTINGS_URL
LCB_AUTH_LDAP_SERVER_CERTS
LCB_AUTH_LDAP_BIND_OPTIONS_BIND_DN
LCB_AUTH_LDAP_BIND_OPTIONS_BIND_CREDENTIALS
LCB_AUTH_LDAP_SEARCH_BASE
LCB_AUTH_LDAP_SEARCH_OPTS_SCOPE
LCB_AUTH_LDAP_SEARCH_OPTS_FILTER
LCB_AUTH_LDAP_SEARCH_OPTS_ATTRIBUTES
LCB_AUTH_LDAP_FIELD_MAPPINGS_UID
LCB_AUTH_LDAP_FIELD_MAPPINGS_FIRST_NAME
LCB_AUTH_LDAP_FIELD_MAPPINGS_LAST_NAME
LCB_AUTH_LDAP_FIELD_MAPPINGS_DISPLAY_NAME
LCB_AUTH_LDAP_FIELD_MAPPINGS_EMAIL