toomuchio / plex-nginx-reverseproxy

Configuration to serve Plex Media Center https://plex.tv using Nginx https://nginx.com
659 stars 94 forks source link

Only Allowing Plex Local Access (for readme) #33

Closed camjac251 closed 6 years ago

camjac251 commented 6 years ago

I am unable to edit the readme myself and pull request so I thought that I'd make this issue to let you know about something I found recently https://forums.plex.tv/discussion/comment/1192684/#Comment_1192684

Basically you add in allowLocalhostOnly="1" inside of your Preferences.xml, for me I added it before all of the other variables, then restart Plex. After that, my plex had stopped responding to remotely and only worked through local. This can be really helpful for those who don't have access to a firewall or are unable to use the default 32400 port so remote access being disabled works. Since if you use a custom port, it will still leak out.

toomuchio commented 6 years ago

Interesting nice find, I guess it switches the listening interface from * to localhost only.

toomuchio commented 6 years ago

I'll add this to the readme, and close the issue when I do.

camjac251 commented 6 years ago

Yeah it's well hidden, there's no other mention on the forums of this variable, as well as on the wiki. And other attempts at trying to bind to localhost on the forums went nowhere last I checked.

toomuchio commented 6 years ago

Very handy, added that in I'll have to try it out myself later but I use a firewall for other reasons so it's not an issue for me.