Skip to main content

Environment variables

Every variable can also be set in a .env file (loaded via dotenvy).

Authentication​

VariableDescription
KOBANA_TOKENBearer token for the product you are calling. Not shared across products
KOBANA_WORKSPACE_IDWorkspace sent in the X-Workspace-Id header. Optional while the organization has a single workspace; an X-Workspace-Id in --params wins over it
KOBANA_CREDENTIALS_FILEPath to an OAuth credentials JSON file
KOBANA_CLIENT_IDOAuth client ID (Banking Gateway)
KOBANA_CLIENT_SECRETOAuth client secret (Banking Gateway)
KOBANA_INBOX_CLIENT_CERTPath to the PEM (certificate + key) used for the inbox product's mTLS

Configuration​

VariableDescription
KOBANA_CONFIG_DIROverride the config directory (default: ~/.config/kobana)
KOBANA_ENVIRONMENTEnvironment. Magic Dashboard only has production (default)

Logging​

VariableDescription
KOBANA_LOGLog level filter for stderr (e.g. kobana=debug). Off by default.
KOBANA_LOG_FILEDirectory for JSON log files with daily rotation. Off by default.

Next steps​