Skip to content

Configuration

OpenObs is configured through environment variables.

Core settings

VariableRequiredDescription
JWT_SECRETYesSecret for signing auth tokens. Minimum 32 characters.
PORTNoAPI server port.
HOSTNoAPI bind host.
CORS_ORIGINSNoComma-separated list of allowed origins.
API_KEYSNoComma-separated service API keys.

LLM settings

VariableRequiredDescription
LLM_PROVIDERNoDefault provider.
LLM_API_KEYNoPrimary provider API key.
LLM_MODELNoDefault model name.
LLM_FALLBACK_PROVIDERNoOptional fallback provider.

Storage settings

VariableRequiredDescription
DATABASE_URLNoPostgres connection string. Leave unset for local SQLite mode.
DATABASE_POOL_SIZENoPool size for Postgres.
DATABASE_SSLNoEnable Postgres SSL.
REDIS_URLNoRedis connection string.
REDIS_PREFIXNoRedis key prefix.
DATA_DIRNoLocal data directory for containerized or SQLite mode.
SQLITE_PATHNoExplicit SQLite file path. Overrides DATA_DIR.

Docs note

The canonical environment template lives in the repository root as .env.example. Keep that file and this page in sync when configuration changes.

Released under the MIT License.