Hello,
I’m trying to enable access from the lan without auth to the clients.
My lan is in 192.168.1.0/24. I have setup List of IP addresses and networks that are allowed without auth to 192.168.1.0/24
When hitting 192.168.1.50:32400/web, it works perfectly
However, I can’t do the same when using my reverse proxy. The name is films.omv.local.
All my services are configured with docker. And more precisely, my network for PMS is in 172.45.0.0/24.
The PMS ip is 172.45.0.2 and the bridge ip for plex is 172.45.0.1.
So therefore, by adding 172.0.0.0/8 to the list it should work. However it’s not working. I don’t understand why…
Here’s my ngnix config. I found it on reddit. (perhaps it could explain why) I’m not expert in reverse proxy there might be a big issue on my config :
server {
listen 80;
server_name films.omv.local;
set $plex http://192.168.1.50:32400;
gzip on;
gzip_vary on;
gzip_min_length 1000;
gzip_proxied any;
gzip_types text/plain text/css text/xml application/xml text/javascript application/x-javascript image/svg+xml;
gzip_disable "MSIE [1-6]\.";
# Forward real ip and host to Plex
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;
# Websockets
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
# Buffering off send to the client as soon as the data is received from Plex.
proxy_redirect off;
proxy_buffering off;
location / {
proxy_pass $plex;
}
}
Do you have any ideas why it’s not working ? Or how I could debug this.
Thanks