Hello,
I would like to request assistance in resolving an issue with configuring a Plex server using Traefik as a reverse proxy. My current configuration seems to work correctly when accessing Plex via the URL mydomain.com/web. However, when I try to access it directly at mydomain.com, I receive an error. I’ve noticed in the logs that there are multiple “entrypoints” like /transcode so I don’t want to simply add a /web prefix to the Traefik service configuration, as I’m concerned it might negatively affect the transcoder through this domain.
Here is my current configuration:
routers:
plex:
rule: "Host(`plex.xxx.xx`)"
service: plex-service
middlewares:
- plex-middleware
entryPoints:
- https
- httpsPublic
services:
plex-service:
loadBalancer:
servers:
- url: "https://x-x-x-x.xxx.plex.direct:32400"
middlewares:
plex-middleware:
headers:
hostsProxyHeaders:
- X-Forwarded-Host
- X-Forwarded-For
referrerPolicy: same-origin
forceSTSHeader: true
Could someone please advise on how to optimize this configuration to work correctly with both / and /web?
Thank you for any assistance and suggestions.