For questions and comments about the Plex Media Server. The Plex Media Server is smart software that makes playing Movies, TV Shows and other media on your computer simple. This page is community-driven and not run by or affiliated with Plex, Inc.
Plex nginx Reverse Proxy Setup
Final Update: IOS app was not working due to invalid certificate (life of cert was over 1 year) therefore the app did not trust it. Regenerated certificate with valid lifetime and remote Plex access via IOS is functional
Hi everyone long time plex user
Looking to leverage nginx reverse proxy in a container. My public DNS record is configured and working properly.
When trying to have nginx receive traffic on port 443 and forward to my internal plex server on 32400, it seems like its working. I can access the URL and everything works publicly. When trying to configure this in the plex app, testing remote connectivity works for a second and greens up, but then flips to fail, I have added the DNS name to the network settings section as well.
Im lost on what to do to make this work properly. Any ideas on what Im doing wrong?
Public Internet -> MyWAN_IP(DNS Record):443 -> Nginx Reverse Proxy Manager -> Plex_Internal_IP:32400
I am running plex with a reverse proxy.
If you're using a reverse proxy, you don't need the remote access on plex anymore. You can disable remote access.
In the plex server go to the network settings and add your domain to the "custom URLS" field the format should be
https://your.plex.domain:443
On your router the only port forward you need is port 80 and 443 to your reverse proxy. Port 80 is necessary if your reverse proxy is also pulling certs using Lets Encrypt which needs port 80 to check the domain is real.
Thank you. I’ve disabled remote access through the web app, Plex is working and can stream remotely
The iOS app is not functional and can not reach my Plex server. Any clue what I am missing?
Just as an aside, if you have your own domain hosted on a supported DNS provider you can use DNS authentication for certbot and not have to open port 80.
What a hero! Thank you so much!
The Plex app is still trying to over 32400 and your firewall is blocking it. I ran into this same problem as you. Opened 32400 back up and it stayed green.
Edit: something to try is try in remote access setting in Plex change the port to 443. Then in nginx try adding a redirect for app.plex.tv. it just hit me as an idea as I was thinking more about. No idea if it would work or not.
Hey sorry, but this isn't correct. Opening 32400 to plex defeats the purpose of the reverse proxy.