Skip to content

Environment variables

Environment configuration below describes the audited Brezel 4 (feat/ai) config files. Set instance secrets through the operator environment; never put them into public documentation or system repositories.

KeyPurpose
APP_ENVLaravel environment (local/staging/production/testing).
APP_KEYInstance encryption key; initialized through php artisan brezel:init.
APP_DEBUGDebug output; false in production.
APP_URLPublic API URL used for sharing, OAuth and issuer defaults.
BREZEL_EXPORT_URLExport service endpoint.
VITE_APP_URLSPA API URL.
VITE_APP_SYSTEMDefault SPA system identifier; otherwise hostname discovery.

Additional file/SSG knobs include BREZEL_FILES_THUMBNAILSIZE_MINI, BREZEL_FILES_THUMBNAILSIZE_DEFAULT, BREZEL_HIDE_PROGRESS_BAR and BREZEL_SSG_PATH_HUGO.

System variables are prefixed with BREZEL_SYSTEM_ followed by the system identifier and an underscore in the instance environment. Inside systems/example/.env omit that prefix. System DB keys are DB_DATABASE, DB_USER and DB_PASSWORD; these are distinct from the instance DB_USERNAME key. System connection management is determined by system configuration and runtime connection handling; there is no MANAGE_CONNECTION environment toggle in this code line.

See Artisan CLI for initialization and test-system operations.