I needed some fun today so I decided to try to put an nginx proxy in front of plex. Before I get into posting configs (I may even drop the project), I just want to know how this set-up works for people.
FYI, my firewall now only allows the https port through to nginx, 32400 is now blocked off.
Remote access shows unavailable. However, the plex web client and the plex android client work off network. Is this normal? Based on some posts I’ve read, this might be the expected behavior.
Plexamp no longer works at all off-network. Does anybody have plexamp working with an nginx proxy config and port 32400 closed off?
Depending on the answers, I may try more on my own, post configs for troubleshooting, or drop the project entirely.
Did you set your custom server URL in your settings? Under Network → Custom server access URLs, you can set your URL so that it can be properly discovered using that address.
Hey, wouldn’t you know, all it took was a new day to solve this. There was a suspect rule in my nginx config that I copied from one of the examples. It was interfering with discovery.
I removed this:
# if a request to / comes in, 301 redirect to the main plex page.
# but only if it doesn't contain the X-Plex-Device-Name header
# this fixes a bug where you get permission issues when accessing the web dashboard
if ($http_x_plex_device_name = '') {
rewrite ^/$ http://$http_host/web/index.html;
}
I believe everything is working, except for the fact that plex says I’m not remotely accessible. And this may be expected behavior?