1
0

In nginx.conf added allow 127.0.0.1. Also found out a proxy_bind option. With it Icecast will see client's IP.

This commit is contained in:
Alexander Andreev 2023-10-08 22:49:04 +04:00
parent 490eed2a24
commit bbfdb8c956
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -27,6 +27,7 @@ server {
location /live/ { location /live/ {
proxy_pass http://127.0.0.1:8001/; proxy_pass http://127.0.0.1:8001/;
proxy_bind $remote_addr transparent;
proxy_buffering off; proxy_buffering off;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
} }
@ -36,11 +37,13 @@ server {
} }
location /api/listener { location /api/listener {
allow 127.0.0.1;
allow 192.168.144.2; allow 192.168.144.2;
deny all; deny all;
} }
location /api/playlist { location /api/playlist {
allow 127.0.0.1;
allow 192.168.144.2; allow 192.168.144.2;
deny all; deny all;
} }
@ -61,8 +64,9 @@ server {
location / { location / {
proxy_pass http://127.0.0.1:8001/; proxy_pass http://127.0.0.1:8001/;
proxy_buffering off; proxy_bind $remote_addr transparent;
proxy_buffering off;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
} }