Environment
ViewTube will check all required environment variables on startup. Check the logs to see if any are missing!
Database configuration
Variable | Default | Description |
---|---|---|
VIEWTUBE_DATABASE_HOST | localhost | The hostname of the database |
VIEWTUBE_DATABASE_PORT | 27017 | The port of the database |
VIEWTUBE_DATABASE_USER | empty | The database username |
VIEWTUBE_DATABASE_PASSWORD | empty | The database password |
Redis configuration
Variable | Default | Description |
---|---|---|
VIEWTUBE_REDIS_HOST | localhost | The hostname of the redis instance |
VIEWTUBE_REDIS_PORT | 6379 | The port of the redis instance |
VIEWTUBE_REDIS_PASSWORD | empty | The password of the redis instance |
Advanced configuration
Variable | Default | Description |
---|---|---|
VIEWTUBE_CLUSTERED | false | Instruct ViewTube to start as many worker processes as it has threads available. If disabled, it will run on a single process instance. |
VIEWTUBE_CORS_ORIGIN | empty | Specify the domain allowed to make cross-origin requests to ViewTube (see: CORS) |
VIEWTUBE_SECURE | false | Enables some security features (CSP headers, secure cookies). Enable this if you are using an HTTPS certificate |
VIEWTUBE_ADMIN_USER | empty | The admin account of this instance (see: Admin |
VIEWTUBE_YOUTUBE_COOKIE | empty | Your Youtube cookie (see: Youtube cookies) |
VIEWTUBE_PROXY_URL | empty | The URL of the proxy server (see: Proxy) |
Table of Contents