Server Version#: 1.32.6.7557
Player Version#: Latest
Hey. I’ve recently set up to run through a reverse proxy hosted on a NGINX Proxy Manager Docker. I’ve got all the SSL and proxy host forwarding set up and have disabled Remote Access and published the url on my PMS. It all works fine apart from when I stream outside the LAN, it reports in as the reverse proxy address as it looks as though the real-ip header is being ignored. It looks fine inside the LAN, the stream reports the correct device IP, but any remote show as the reverse proxy IP.
My conf looks like:
location / {
proxy_pass https://local.server.address.plex.direct:32400;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
#When using ngx_http_realip_module change $proxy_add_x_forwarded_for to ‘$http_x_forwarded_for,$realip_remote_addr’
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Sec-WebSocket-Extensions $http_sec_websocket_extensions;
proxy_set_header Sec-WebSocket-Key $http_sec_websocket_key;
proxy_set_header Sec-WebSocket-Version $http_sec_websocket_version;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “Upgrade”;
}
Has anyone successfully got this working and the real IP’s being respected? If so, I’d love to know how.
Many thanks.