Set on the app service.
| Variable |
Description |
AUTH_SECRET |
Secret for signing login sessions. |
GATEWAY_SIGNING_KEY |
Shared with the gateway; signs playback URLs. At least 32 characters. |
| Variable |
Default |
Description |
GATEWAY_URL |
http://localhost:8080 |
Where the web app reaches the gateway. The compose files set http://gateway:8080. |
AUTH_URL |
|
Public address of the server, e.g. https://tube.example.org. |
AUTH_TRUST_HOST |
|
true behind a reverse proxy. |
DATABASE_PATH |
./data/owntube.db |
SQLite database. The image sets /app/apps/web/data/owntube.db. |
LOG_LEVEL |
info |
debug, info, warn or error. |
TZ |
UTC |
Time zone for log lines. |
| Variable |
Default |
Description |
OWNTUBE_WARM_INTERVAL_SEC |
900 |
Seconds between runs; 0 turns refreshing off. |
OWNTUBE_WARM_REGION |
US |
Region for trending (ISO country code). |
OWNTUBE_WARM_LIMIT |
48 |
Trending videos to keep. |
OWNTUBE_WARM_VIDEO_LIMIT |
5 |
Newest uploads per channel to fetch details for. |
OWNTUBE_WARM_CHANNELS |
true |
Channel names and avatars. |
OWNTUBE_WARM_CHANNEL_PAGES |
true |
First page of each channel’s videos. |
OWNTUBE_WARM_SHORTS |
true |
The Shorts shelf. |
OWNTUBE_WARM_RSS |
true |
Channel feeds for new uploads. |
OWNTUBE_WARM_VIDEOS |
true |
Video details for new uploads and the queue. |
OWNTUBE_WARM_HOME |
true |
Home page feeds. |
| Variable |
Default |
Description |
OWNTUBE_DEBUG_RECOMMENDATIONS |
|
1 logs every recommendation score. |
OWNTUBE_RECOMMENDATION_LOG_PATH |
logs/recommendation-debug.ndjson |
Where those scores go. |
See Podcast feeds.
| Variable |
Default |
Description |
OWNTUBE_PUBLISH_TARGET |
|
Address of the public feeds server. |
OWNTUBE_PUBLISH_SECRET |
|
Shared with the feeds server’s PUBLISH_SECRET. Publishing starts when both are set. |
OWNTUBE_PUBLISH_INTERVAL_SEC |
1800 |
Longest time between two publishes. |
OWNTUBE_APP_URL |
AUTH_URL |
Address used for links in the feeds. |
OWNTUBE_WEBSUB |
true |
false stops collecting upload notifications from the feeds server. |
See Hooks and webhooks.
| Variable |
Default |
Description |
OWNTUBE_HOOKS_DIR |
|
Directory of executables to run on watch events. |
OWNTUBE_HOOK_TIMEOUT_MS |
30000 |
Time limit per hook and per webhook POST. |
OWNTUBE_WEBHOOK_URLS |
|
Comma-separated URLs that receive every event as JSON. |
OWNTUBE_WEBHOOK_TOKEN |
|
Sent as X-Webhook-Token. |
| Variable |
Default |
Description |
OWNTUBE_TV_RELEASES_DIR |
data/tv-releases |
APKs and update.json for TV updates. See TV apps. |
Set on the gateway service.
| Variable |
Default |
Description |
GATEWAY_SIGNING_KEY |
required |
Must match the web app’s value. |
GATEWAY_HOST |
0.0.0.0 |
Listening address. |
GATEWAY_PORT |
8080 |
Listening port. |
GATEWAY_EGRESS_FAMILY |
auto (ipv4 in compose) |
Address family for YouTube traffic: auto, ipv4 or ipv6. |
GATEWAY_TRANSPORT |
auto |
auto: regular stream URLs, SABR when YouTube refuses them. sabr: SABR from the start. |
GATEWAY_PO_BROWSER |
|
Path to Chromium for PO tokens (/usr/bin/chromium in an image built with WITH_PO_BROWSER=true). |
GATEWAY_PROXY_URL |
|
HTTP proxy for all YouTube traffic. |
GATEWAY_CACHE_DIR |
data/cache |
Metadata and image cache. The compose files set /data/cache. |
GATEWAY_IMAGE_CACHE_MAX_BYTES |
1073741824 |
Image cache size kept by the hourly cleanup. |
GATEWAY_SHUTDOWN_GRACE_MS |
10000 |
Time given to running streams on shutdown. |