Skip to content

Configuration Reference

The API and the worker read their settings from environment variables. When they run outside Docker, they also read a .env file in the working directory. Names are case-insensitive.

VariableDefaultDescription
DATABASE_URLpostgresql+asyncpg://bizon:bizon@localhost:5432/bizon_platformPostgres URL. Keep the +asyncpg driver.
ENCRYPTION_KEYnoneFernet key for encrypting pipeline and saved-connector configs. Generate one with make key.
ADMIN_PASSWORDnoneTurns on HTTP Basic auth for every endpoint except /api/health. See Authentication.
HOST0.0.0.0API bind address
PORT8000API port
DEBUGfalseEnables uvicorn auto-reload when the API is started with python -m bizon_platform
CORS_ALLOWED_ORIGINS["http://localhost:5173", "http://localhost:3000"]JSON list of allowed browser origins
VariableDefaultDescription
WORKER_POLL_INTERVAL2Seconds an idle worker waits between polls
STORAGE_BACKENDlocallocal is the only option
STORAGE_LOCAL_PATH/tmp/bizon-outputsRun logs (logs/...) and file destination outputs. Must be shared by the API and the workers.
LOG_RETENTION_DAYS30Accepted, but nothing deletes old log files yet
EXECUTION_BACKENDsubprocessOnly subprocess is available
VariableDefaultDescription
CUSTOM_SOURCES_DIR./custom_sourcesDirectory of custom sources. Must be shared by the API and the workers.
GIT_SYNC_ENABLEDfalseSync custom sources from Git
GIT_SYNC_REPO_URLnoneRepository URL
GIT_SYNC_BRANCHmainBranch to sync
GIT_SYNC_PATHcustom_sourcesFolder in the repository
GIT_SYNC_TOKENnoneToken for private HTTPS repositories
GIT_SYNC_WEBHOOK_SECRETnoneSecret for GitHub and GitLab push webhooks

See Git sync.

VariableDefaultDescription
INSTANCE_NAMEBizonName shown as the API title in the OpenAPI docs
INSTANCE_DESCRIPTIONData pipeline orchestration platformAPI description in the OpenAPI docs
Terminal window
ENCRYPTION_KEY=your-fernet-key
DATABASE_URL=postgresql+asyncpg://bizon:bizon@localhost:5432/bizon_platform
# ADMIN_PASSWORD=change-me
# GIT_SYNC_ENABLED=true
# GIT_SYNC_REPO_URL=https://github.com/acme/bizon-sources.git
# GIT_SYNC_TOKEN=ghp_xxx
# GIT_SYNC_WEBHOOK_SECRET=...

With Docker Compose, only ENCRYPTION_KEY is passed from .env into the containers. Add any other variable to the service’s environment in docker-compose.yml. See Docker.

Pipeline subprocesses inherit the worker’s environment. Variables that your pipelines reference, for example through bizon-core secret references, must be set on the worker. They must also be set on the API, which resolves the references when it validates a config.