VidArch Docs
Start

Environment Variables

Reference for supported variables at startup.

VariableDefault ValueUsage
PORT2498 in developmentAPI port; the Docker image sets it to 2499
NODE_ENVcurrent environmentenables production behavior
DATA_DIR./database, secret, cookies, and resources
DOWNLOADS_DIR./downloadsvideos and associated files
YT_DLP_PATHautomatic detectionexplicit path to yt-dlp
AUTH_PASSWORDemptyinitial password for the instance
SESSION_SECRETgenerated locallysession signing, minimum 16 characters
VIDARCH_BIND_ADDRESS127.0.0.1 in Composelistening address published by Docker

Use a secrets manager or a non-versioned .env file. Never place a real secret value in compose.yml or in the Git repository.