toomuchio / plex-nginx-reverseproxy

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

401 Unauthorized #12

Closed Suika closed 7 years ago

Suika commented 7 years ago

I'm running plex on my built NAS that has it's own dns entry. For ease of use, I create a hostname pointing to the NAS ip.

And using the current configuration, it, for some reason didn't want to access the Plex Wen Interface. You get the nice "Please Login" (aka. 401) view, which shouldn't be there since I'm on local network.

I still haven't found a better way around it, but if one sends the Token to Plex as a header, it will work correctly. But it depends if people want to use it like that.

Maybe include it as comment, in case nothing works for other people. proxy_set_header X-Plex-Token "";

hjone72 commented 7 years ago

In plex you can specify what networks are considered local and what networks are allowed without Auth. I suspect you will need to just set one of these.

image