Skip to content

Environment Variables

Environment variables define database, cache, storage, login, and system security settings.

Database and Cache

VariableDescription
POSTGRES_DBPostgreSQL database name.
POSTGRES_USERPostgreSQL username.
POSTGRES_PASSWORDPostgreSQL password.
DATABASE_URLDatabase connection string used by API, migrations, and Agent persistence.
REDIS_URLRedis URL used by API and Agent.

System Security

VariableDescription
APP_SECRETRoot signing and encryption secret. Use a strong random value.
APP_INTERNAL_KEYInternal service key shared by API and Agent. Production deployments must use a strong random value; development can use the default.
SYSTEM_ADMINInitial system administrator identifier.

Do not change APP_SECRET casually on an existing instance, because it may affect issued credentials or encrypted data.

Login and OAuth

VariableDescription
OAUTH_PROXY_URLOptional OAuth proxy URL.
GITHUB_CLIENT_ID / GITHUB_CLIENT_SECRETGitHub OAuth configuration.
LINUX_DO_CLIENT_ID / LINUX_DO_CLIENT_SECRETLinux Do OAuth configuration.
GOOGLE_CLIENT_ID / GOOGLE_CLIENT_SECRETGoogle OAuth configuration.

Unconfigured OAuth providers are not displayed as available login methods.

Object Storage

VariableDescription
STORAGE_ENDPOINTS3-compatible object storage endpoint.
STORAGE_ACCESS_KEYObject storage access key ID.
STORAGE_SECRET_KEYObject storage secret key.

Development and production compose files use RustFS by default. Other S3-compatible services can be used if endpoint and credentials are correct.

Internal Service URL

API_INTERNAL_URL is used by Agent to call API internal endpoints. It must be the API origin and must not include /api.

Production compose uses:

txt
API_INTERNAL_URL=http://api:3000