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_ORIGINNoComma-separated list of allowed CORS origins (e.g. https://confo.example.com).
NODE_ENVNoSet to production to disable automatic database schema synchronization.

Database

VariableRequiredDefaultDescription
DATABASE_TYPEYesDatabase driver. Use mariadb.
DATABASE_HOSTYesDatabase server hostname (e.g. mariadb when using Docker Compose).
DATABASE_PORTNo3306Database server port.
DATABASE_USERNAMEYesDatabase user.
DATABASE_PASSWORDYesDatabase password.
DATABASE_NAMEYesDatabase name (e.g. confo).

Superadmin Seed

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

VariableRequiredDefaultDescription
SUPERADMIN_USERNAMEYesUsername for the initial superadmin account.
SUPERADMIN_PASSWORDYesPassword for the initial superadmin account.

YouTube Integration

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

VariableRequiredDefaultDescription
YOUTUBE_CLIENT_IDNoGoogle OAuth 2.0 client ID.
YOUTUBE_CLIENT_SECRETNoGoogle 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_PASSWORDNoOBS 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_IDYesThe 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.