Plex behind reverse proxy not working

Server Version#:1.42.2.10156

I’m trying to configure plex in home kubernetes cluster but remote access does not work with with reverse proxy (envoy gateway). I’ve added url in “Custom server access URLs” and could open it in browser form outside home network without proxy but remote access only works if I forward port 32400 and disable requred secure connections whic does not look good.

Is ther any way to make plex use domain with standard https port instead of ip address for remote access?

Is your proxy accessing the plex server using https or http? I have my proxy connecting through http (it’s behind a vpn). If I set secure connection required in the plex network settings, the proxy will fail. I just disable the port forward on my local network and my nginx server only accepts https. So it’s https from client to nginx and http (through vpn tunnel) to my plex server. No outside connections are made to the plex server, so there is no security issue setting it to “preferred” on secure connections.

If you are using a reverse proxy you need to disable remote access in the Plex settings otherwise it will keep advertising the port forward and your clients will default to that. Disabling remote access doesn’t stop remote access to your Plex server, it only impacts what the server announces.