So I try to run Plex behind Caddy as a proxy.
Caddy and Plex both run in docker containers.
But when I browse to my Plex subdomain, I got redirect to the Plex login web page, where I just want to see my library without going to app.plex.com.
My Caddyfile for Plex:
plex.{$CADDY_DOMAIN} {
errors stdout
# Password protect everything
basicauth / {$CADDY_USERNAME} {$CADDY_PASSWORD}
proxy / plex:32400 {
transparent
}
}
My docker-compose.yml for Plex:
plex:
image: linuxserver/plex
container_name: plex
environment:
- VERSION=docker
expose:
- 32400
restart: unless-stopped
Anybody knows how to fix this?