Skip to content

Environment Variables

Most configuration lives in OmniLux's SQLite database and is managed through the web UI. These environment variables control runtime behavior that must be set before the application starts.

Core

VariableDefaultDescription
NODE_ENVdevelopmentSet to production for production deployments
PORT4000HTTP port for the web UI and API
OMNILUX_DB_PATHdata/omnilux.db (local) or /app/data/omnilux.db (Docker)Path to the SQLite database file
OMNILUX_LIBRARY_ROOT/dataRoot path for the media library inside the container
OMNILUX_DOWNLOAD_PATH/app/data/downloadsDirectory for server-managed runtime files

Metadata

VariableDefaultDescription
TMDB_API_KEYAPI key for The Movie Database (TMDB) metadata lookups

GPU / Transcoding

VariableDefaultDescription
NVIDIA_VISIBLE_DEVICESNVIDIA GPUs to expose (set to all for all GPUs)
NVIDIA_DRIVER_CAPABILITIESRequired capabilities (set to compute,video,utility)
LIBVA_DRIVER_NAMEVA-API driver name (e.g., radeonsi for AMD GPUs)

INFO

Most feature configuration is stored in the SQLite database, not in environment files. Use the Settings page in the web UI for normal day-to-day server configuration.