Documentation previewThese docs are actively being built. Some pages may change as the framework and examples are finalized.
Skip to content

Environment Variables

Generated Apps use environment variables for runtime behavior.

This page groups the major variable families. Generated component READMEs and workflow pages contain feature-specific detail.

App

VariablePurpose
APP_NAMEApp display name.
APP_KEYApp secret material used by generated runtime features.
APP_ENVEnvironment name such as local or production.
APP_DEBUGDebug behavior toggle.
APP_URLPublic App URL.
APP_DIAG_TOKENToken for authorized diagnostic endpoints.
APP_SHUTDOWN_TIMEOUTRoot shutdown budget.

Logging

VariablePurpose
APP_LOG_CALLERInclude caller metadata in logs.
APP_LOG_FORMATLog format, normally console or json.
APP_LOG_TIMEInclude timestamps in generated App logs.
APP_LOG_DEDUPE_ENABLEDCoalesce repeated similar log messages.

HTTP and OpenAPI

VariablePurpose
API_HTTP_HOSTHTTP bind host.
API_HTTP_PORTHTTP bind port.
API_SWAGGER_ENABLEDEnables generated API reference routes.
OPENAPI_SPEC_PATHOverrides the served OpenAPI JSON path.

HTTP Client Diagnostics

VariablePurpose
HTTP_TRACEEnables httpx request and response dump output for clients created with httpx.New() when the variable is present.

Driver Families

GoForj separates compile-time support from runtime selection.

FamilyCompile-Time SupportRuntime Selection
CacheCACHE_SUPPORTED_DRIVERSCACHE_DRIVER, CACHE_<NAME>_DRIVER
StorageSTORAGE_SUPPORTED_DRIVERSSTORAGE_DRIVER, STORAGE_<NAME>_DRIVER
QueueQUEUE_SUPPORTED_DRIVERSQUEUE_DRIVER, QUEUE_<NAME>_DRIVER
EventsEVENTS_SUPPORTED_DRIVERSEVENTS_DRIVER, EVENTS_<NAME>_DRIVER
DatabaseDB_SUPPORTED_DRIVERSDB_DRIVER, DB_<NAME>_DRIVER
MailMAIL_SUPPORTED_DRIVERSMAIL_DRIVER, MAIL_<NAME>_DRIVER

Metrics

Common metrics variables:

VariablePurpose
METRICS_PORTCombined App metrics endpoint port.
METRICS_API_PORTHTTP runtime metrics endpoint port.
METRICS_JOBS_PORTJobs runtime metrics endpoint port.
METRICS_SCHEDULER_PORTScheduler runtime metrics endpoint port.
METRICS_HTTP_ENABLEDEnable HTTP metrics.
METRICS_CACHE_ENABLEDEnable cache metrics.
METRICS_STORAGE_ENABLEDEnable storage metrics.
METRICS_EVENTS_ENABLEDEnable event metrics.
METRICS_MAIL_ENABLEDEnable mail metrics when mail is rendered.
METRICS_QUEUE_ENABLEDEnable queue metrics when jobs are rendered.
METRICS_DATABASE_ENABLEDEnable database metrics when database support is rendered.
METRICS_AUTH_ENABLEDEnable auth metrics when auth is rendered.
METRICS_SCHEDULER_ENABLEDEnable scheduler metrics when scheduler is rendered.
METRICS_MONITORING_ENABLEDEnable demo monitoring metrics when the demo App is rendered.

Lighthouse and Inspects

Common variables:

VariablePurpose
LIGHTHOUSE_ENABLEDEnable Lighthouse runtime integration.
LIGHTHOUSE_URLLighthouse agent websocket URL.
LIGHTHOUSE_SECRETShared secret for Lighthouse agent/server authentication.
LIGHTHOUSE_INSPECT_ENABLEDEnable inspect capture. Local overrides usually set this to true.
LIGHTHOUSE_INSPECT_MAX_TOTALMaximum retained inspect records.
LIGHTHOUSE_INSPECT_MAX_INFLIGHTMaximum in-flight inspect records.
LIGHTHOUSE_INSPECT_MAX_EVENTSMaximum events recorded per inspect.
LIGHTHOUSE_INSPECT_SAMPLE_RATESampling rate for inspect capture.
LIGHTHOUSE_INSPECT_BUFFER_SIZELighthouse inspect flush buffer size.
LIGHTHOUSE_INSPECT_FLUSH_INTERVALLighthouse inspect flush interval.
LIGHTHOUSE_INSPECT_FLUSH_BATCH_SIZELighthouse inspect flush batch size.

Auth

Generated auth Apps commonly use:

VariablePurpose
API_JWT_SECRET_KEYJWT signing secret for generated auth.
AUTH_ACCESS_TOKEN_TTLShort-lived bearer token lifetime.
AUTH_SESSION_IDLE_TTLInactivity window before sign-in is required again.
AUTH_SESSION_TTLAbsolute session lifetime.
AUTH_REMEMBER_SESSION_TTLAbsolute lifetime for remembered sessions.
AUTH_COOKIE_SECURECookie secure behavior.
AUTH_LOGIN_LOCKOUT_ATTEMPTSFailed login attempts before temporary lockout.
AUTH_LOGIN_LOCKOUT_DURATIONTemporary lockout duration.
AUTH_LOGIN_RATE_LIMIT_ATTEMPTSLogin rate-limit attempts within the configured window.
AUTH_LOGIN_RATE_LIMIT_DURATIONLogin rate-limit window.
AUTH_BOOTSTRAP_USERNAMEBootstrap admin username for generated local auth setup.
AUTH_BOOTSTRAP_EMAILBootstrap admin email for generated local auth setup.
AUTH_BOOTSTRAP_PASSWORDBootstrap admin password for generated local auth setup.