Skip to main content Plex nginx Reverse Proxy Setup : r/PleX
Go to PleX
•

Plex nginx Reverse Proxy Setup

Solved

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

Easily automate change orders and workflows to deliver construction projects on budget with the new Intuit Enterprise Suite.
Clickable image which will reveal the video player: Easily automate change orders and workflows to deliver construction projects on budget with the new Intuit Enterprise Suite.
Sort by:
Best
Open comment sort options
• • Edited
Profile Badge for the Achievement Top 1% Commenter Top 1% Commenter

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?

More replies

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!

More replies
• • Edited

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.

Profile Badge for the Achievement Top 1% Commenter Top 1% Commenter

Hey sorry, but this isn't correct. Opening 32400 to plex defeats the purpose of the reverse proxy.

More replies
More replies