diff --git a/configs/nginx.conf b/configs/nginx.conf index 82761aa..7b65a62 100644 --- a/configs/nginx.conf +++ b/configs/nginx.conf @@ -27,6 +27,7 @@ server { location /live/ { proxy_pass http://127.0.0.1:8001/; + proxy_bind $remote_addr transparent; proxy_buffering off; proxy_set_header X-Real-IP $remote_addr; } @@ -36,11 +37,13 @@ server { } location /api/listener { + allow 127.0.0.1; allow 192.168.144.2; deny all; } location /api/playlist { + allow 127.0.0.1; allow 192.168.144.2; deny all; } @@ -61,8 +64,9 @@ server { location / { - proxy_pass http://127.0.0.1:8001/; - proxy_buffering off; + proxy_pass http://127.0.0.1:8001/; + proxy_bind $remote_addr transparent; + proxy_buffering off; proxy_set_header X-Real-IP $remote_addr; }