MeTube can run behind a reverse proxy for HTTPS termination or authentication. When serving under a subdirectory, set URL_PREFIX accordingly. MeTube uses WebSocket (Socket.IO) for real-time updates, so the proxy must pass the Upgrade/Connection headers — the examples below all do.
NGINX
Apache
Contributed by PIE-yt. Source here.
Caddy
The following example Caddyfile gets a reverse proxy going behind caddy.
swag (with Authelia)
The linuxserver/swag image includes ready-made snippets for MeTube in subfolder and subdomain modes, plus Authelia for authentication.
Why no built-in authentication?
MeTube deliberately has no login system (see #931): authentication done right
is substantial, security-sensitive complexity, and every reverse proxy above
adds it in minutes with battle-tested code. Use HTTP basic auth, Authelia,
or your proxy's equivalent. Anything security-related can be reported via the
repository's private vulnerability reporting (see SECURITY.md).
Have a working config for another proxy (Traefik, nginx-proxy-manager, HAProxy…)? Open an issue with the snippet and it will be added here with attribution.