Server Version#: 4.12.13
TL:DR - I have been trying to get Plex to work via NGINX and am unable to get it to work reliably with apps (Android/Roku). It notifies me of “Limited Connection” and thus my streaming speed is limited as it is using the Plex relay feature. Access via the web addresses (both direct plex.mydomain.com and app.plex.tv appear to work properly).
When trying other recommended NGINX configurations I am also able to access only with a browser and not any apps.
More Detail:
I have had Plex working fine previously for remote access without NGINX. I had my own PFX certificate (self-signed) installed within Plex and had port 32400 forwarded with remote access enabled. This worked fine, but I am trying to utilize NGINX for all my remote services through the single 443 port. I mention the above mostly to show that I am familiar with what a properly functioning remote access should entail.
My specific setup is as follows:
-
NGINX running on an Asus-merlin router accepting connection on 443. Port 80 is actually blocked by my ISP so it is not possible for me to accept any connections on 80 and redirect. All connections must be able to hit 443 directly.
IP Address (internal): 10.10.10.1
External domain name: plex.mydomain.com
SSL Certificate from Let’s Encrypt -
Plex running on a Windows Server 2016 which is single-natted to the outside network.
IP Address (internal): 10.10.10.102
I initially had a pretty straightforward NGINX configuration for Plex which I found somewhere on these forums. It had appeared to work under casual use but then I realized I was getting limited connection when using the Android app. It would sometimes notify me of this Limited Connection, but additionally it would not allow me to set my streaming quality above 1 Mbps (which indicates that I am indeed using the Plex relay instead of connecting direct).
It is worth mentioning that in that configuration I did have the Plex remote access enabled over port 443. Additionally I had the following Network configuration set:
Custom certificate domain: plex.mydomain.com
Custom server access URLs: https://plex.mydomain.com:443
Secure Connections: Preferred
When I realized I was getting limited connection I researched some other configurations and it seems most people are using a configuration based on this one.
I have modeled a new nginx conf based off of this one and the issue remains.
Additionally, the instructions for that configuration (and discussed elsewhere) state that you should actually disable remote access within Plex..
When I disable remote access within Plex I no longer get any connection at all using the Android or Roku apps. It simply shows my server as offline.
It is worth noting that in either configuration (my old config or new, and whether or not I enable or disable remote access from within Plex) I am able to access:
https://plex.mydomain.com
https://app.plex.tv
And in both cases I am able to play back without any indication of streaming limit/relay. So, it appears that my configuration is working to some degree as the browsers can access it, but it appears none of the apps are able to access it.
I am really at a loss as I have been troubleshooting this for a couple of days now and can’t find really any indications of other people having these problems. Of course, there are so many variations in other configurations, but most of the other posts I see people are running on VPS or within docker, etc. I would think that my configuration is actually a simpler one as I am simply running it on a box directly behind my router.
Would really appreciate assistance with this!