Database, storage and runtime environment
Database (config/database.php)
Section titled “Database (config/database.php)”| Key | Default / purpose |
|---|---|
| DB_HOST, DB_PORT | Primary host/port; fallback TENANCY_HOST/PORT, then 127.0.0.1/3306. |
| DB_DATABASE, DB_USERNAME, DB_PASSWORD | Primary database credentials; fallback corresponding TENANCY_DATABASE/USERNAME/PASSWORD. |
| DB_SOCKET | Empty; optional Unix socket. |
| BREZEL_CONNECTION_NAME | Fallback DB_CONNECTION, then system. |
| DB_CONNECTION | Default connection name. |
| BREZEL_RUNTIME_DB_HOST, BREZEL_RUNTIME_DB_PORT | Runtime administration host; port 13306. |
| BREZEL_RUNTIME_DB_USERNAME, BREZEL_RUNTIME_DB_PASSWORD | Runtime administration credentials. |
TENANCY_* are compatibility fallbacks for the primary System DB; prefer DB_* for new operator configuration. The control connection must remain separate from an active preview/test connection. PHPUnit uses TEST_TOKEN to suffix parallel test databases.
Storage (config/filesystems.php)
Section titled “Storage (config/filesystems.php)”| Key | Default / purpose |
|---|---|
| FILESYSTEM_DISK | local |
| FILESYSTEM_CLOUD | s3 |
| S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY | Object storage credentials. |
| S3_DEFAULT_REGION, S3_BUCKET | Region and bucket. |
| S3_ROOT | tenancy/tenants |
| S3_ENDPOINT, S3_URL | Service endpoint and optional public URL. |
| S3_USE_PATH_STYLE_ENDPOINT | false; path-style bucket addressing. |
| SFTP_HOST, SFTP_PORT | Host; port 22. |
| SFTP_USERNAME, SFTP_PASSWORD, SFTP_ROOT | Credentials; root /. |
Queue, cache and Redis
Section titled “Queue, cache and Redis”QUEUE_CONNECTION selects the queue connection (see config/queue.php). REDIS_HOST (127.0.0.1), REDIS_PORT (6379), REDIS_USERNAME, REDIS_PASSWORD, REDIS_DB (0) and REDIS_CACHE_DB (1) configure Redis. CACHE_STORE selects stores used by AI runtime caching (database default there). Workers must consume the configured system queue groups; see CLI.
Mail (config/mail.php)
Section titled “Mail (config/mail.php)”MAIL_DRIVER defaults to smtp; MAIL_HOST defaults to smtp.mailgun.org, MAIL_PORT to 587. MAIL_USERNAME, MAIL_PASSWORD and MAIL_ENCRYPTION configure transport. MAIL_FROM_ADDRESS and MAIL_FROM_NAME set the sender. MAIL_SENDMAIL and MAIL_LOG_CHANNEL configure their respective transports.
Return to environment reference.