Configuration Reference

Delivr is configured entirely through environment variables. This page lists every option for both Delivr API and Delivr Web.

Delivr API environment variables

VariableDefaultDescription
DLA_LOG_LEVELinfoLog verbosity.
DLA_APP_URLPublic URL of the Delivr Web client. Required.
DLA_API_HOST::Bind address.
DLA_API_PORT14123Listen port for the API.
DLA_DISABLE_DOCSfalseDisable the Scalar OpenAPI reference.
DLA_ENCRYPTION_KEY32-character key for credential encryption. Required.
DLA_DB_CONNECTION_URL./data/db.sqliteDatabase connection string or path.
DLA_DB_AUTO_MIGRATEtrueRun migrations on startup.
DLA_LOG_DIR./data/logsLog output directory.
DLA_CONFIG_BASE_DIR./configConfig base directory.
DLA_SMTP_HOSTOutbound SMTP host for system emails.
DLA_SMTP_PORTOutbound SMTP port.
DLA_SMTP_USERNAMEOutbound SMTP username.
DLA_SMTP_PASSWORDOutbound SMTP password.
DLA_SMTP_FROMFrom address for system emails.
DLA_SMTP_SECUREfalseUse TLS for the SMTP connection.

Delivr Web environment variables

VariableDefaultDescription
DELIVR_API_URLhttp://localhost:14123/v1Base URL of the Delivr API (v1).
DELIVR_APP_URLhttp://localhost:14128Public URL of the web client.
DELIVR_ENABLE_SIGNUPfalseAllow self-service registration.
USE_DEV_PROXYfalseRoute API calls through a dev proxy.

Useful commands

Delivr API

bun run devStart dev server with watch mode.
bun run startProduction entry point.
bun run typecheckRun TypeScript type checking.
bun testRun the test suite.
bun run db:sqlite:migrateRun SQLite migrations.
bun run db:sqlite:generateGenerate a new SQLite migration.

Delivr Web

bun run devStart dev server on port 14128.
bun run buildProduction build (Bun preset).
bun run generateStatic site generation.
bun run typecheckRun nuxt typecheck + tsc.
bun run api-client:generateRegenerate API client from OpenAPI spec.