Environment

ViewTube will check all required environment variables on startup. Check the logs to see if any are missing!

Database configuration

VariableDefaultDescription
VIEWTUBE_DATABASE_HOSTlocalhostThe hostname of the database
VIEWTUBE_DATABASE_PORT27017The port of the database
VIEWTUBE_DATABASE_USERemptyThe database username
VIEWTUBE_DATABASE_PASSWORDemptyThe database password

Redis configuration

VariableDefaultDescription
VIEWTUBE_REDIS_HOSTlocalhostThe hostname of the redis instance
VIEWTUBE_REDIS_PORT6379The port of the redis instance
VIEWTUBE_REDIS_PASSWORDemptyThe password of the redis instance

Advanced configuration

VariableDefaultDescription
VIEWTUBE_CLUSTEREDfalseInstruct ViewTube to start as many worker processes as it has threads available. If disabled, it will run on a single process instance.
VIEWTUBE_CORS_ORIGINemptySpecify the domain allowed to make cross-origin requests to ViewTube (see: CORS)
VIEWTUBE_SECUREfalseEnables some security features (CSP headers, secure cookies). Enable this if you are using an HTTPS certificate
VIEWTUBE_ADMIN_USERemptyThe admin account of this instance (see: Admin
VIEWTUBE_YOUTUBE_COOKIEemptyYour Youtube cookie (see: Youtube cookies)
VIEWTUBE_PROXY_URLemptyThe URL of the proxy server (see: Proxy)