Environment Variables

Quick-reference for all supported environment variables.

All Variables

VariableDefaultDescription
FLASK_SECRET_KEYoptionalauto-generatedSession signing secret. Auto-generated and persisted on first boot. Only set manually for multi-instance deployments that need shared sessions.
HTTPS_ENABLEDrequiredfalseSet true on BTP CF. Fixes OAuth redirect URIs behind TLS proxy.
LICENSE_KEYoptionalYour license key from LemonSqueezy. Omit to run in 14-day trial mode.
LICENSE_OFFLINEoptionalfalseSkip license validation entirely. Grants Enterprise access. Dev / air-gapped only — do not use in production.
OPENAI_API_KEYoptionalOpenAI key for AI features (Pro/Enterprise).
OPENAI_MODELoptionalgpt-4oAI model name.
AI_MAX_TOKENSoptional2048Max tokens per AI response.
XSUAA_DEFAULT_ROLEoptionalviewerFallback role for BTP users with no matching Role Collection.
REQUEST_TIMEOUToptional30CPI API timeout in seconds.
MAX_LOG_ROWSoptional200Max message log rows per page fetch.
DATA_DIRoptional/app/dataPersistent data directory (tenant profiles, audit log).
TENANT_BOOTSTRAPoptionalJSON string of your encrypted tenants.json contents. On CF, set this after initial setup to survive restages — the app restores tenant settings automatically on boot if the file is missing. Generate the value from Settings → ☁️ Persist Settings on BTP.
SUPERUSER_USERNAMEoptionalUsername for the break-glass admin account. When set alongside SUPERUSER_PASSWORD, this account can log in with full admin rights even if SSO or local user management is misconfigured. See Break-Glass Admin.
SUPERUSER_PASSWORDoptionalPassword for the break-glass admin. Hashed with bcrypt at startup — never stored or logged as plaintext. Only takes effect when SUPERUSER_USERNAME is also set.

Setting Variables on CF

cf set-env cpi-developer-studio VARIABLE_NAME "value"
cf restage cpi-developer-studio

Unsetting a Variable

cf unset-env cpi-developer-studio VARIABLE_NAME
cf restage cpi-developer-studio

Viewing Current Variables

cf env cpi-developer-studio