Skip to main content

Environment Variables

Complete reference of all environment variables used by Confo.

Backend​

These variables configure the main Confo application container (ghcr.io/vasimi/confo).

Core​

VariableRequiredDefaultDescription
JWT_SECRETNoRandomSecret key used to sign JWT authentication tokens. Use a long, random string. If omitted, a random secret is generated on startup — sessions will not persist across restarts and this will not work in HA/multi-instance setups.
PORTNo3000Port the backend API server listens on. Rarely needs changing in Docker.
CORS_ORIGINNo—Comma-separated list of allowed CORS origins (e.g. https://confo.example.com).
NODE_ENVNo—Set to production to disable automatic database schema synchronization and run pending TypeORM migrations automatically on container startup. See Database Migrations.
NG_ALLOWED_HOSTSNo—Comma-separated list of hostnames the Angular SSR server will render for (e.g. confo.example.com). If unset, SSR falls back to client-side rendering for any non-matching host and logs a warning. Set this to your public domain when deploying behind a reverse proxy. See Angular SSRF guidance.

Database​

VariableRequiredDefaultDescription
DATABASE_TYPEYes—Database driver. Use mariadb.
DATABASE_HOSTYes—Database server hostname (e.g. mariadb when using Docker Compose).
DATABASE_PORTNo3306Database server port.
DATABASE_USERNAMEYes—Database user.
DATABASE_PASSWORDYes—Database password.
DATABASE_NAMEYes—Database name (e.g. confo).

Superadmin Seed​

These variables are used on first startup to create the initial superadmin account.

VariableRequiredDefaultDescription
SUPERADMIN_USERNAMEYes—Username for the initial superadmin account.
SUPERADMIN_PASSWORDYes—Password for the initial superadmin account.

YouTube Integration​

These variables are only required if you use the YouTube integration.

VariableRequiredDefaultDescription
YOUTUBE_CLIENT_IDNo—Google OAuth 2.0 client ID.
YOUTUBE_CLIENT_SECRETNo—Google OAuth 2.0 client secret.

OBS Bridge​

These variables configure the OBS Bridge container (ghcr.io/vasimi/confo/obs-bridge).

VariableRequiredDefaultDescription
OBS_HOSTNolocalhostHostname or IP of the machine running OBS Studio.
OBS_PORTNo4455OBS WebSocket server port.
OBS_PASSWORDNo—OBS WebSocket server password. Leave empty if OBS has no password set.
BACKEND_URLNohttp://localhost:3000URL of the Confo backend API (e.g. http://confo:3000 in Docker Compose).
ROOM_IDYes—The room ID (from Confo) that this OBS Bridge instance is associated with.
RECONNECT_DELAYNo5000Delay in milliseconds before attempting to reconnect to OBS or the backend after a disconnection.