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:
parent
490eed2a24
commit
bbfdb8c956
@ -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;
|
||||||
}
|
}
|
||||||
@ -62,6 +65,7 @@ server {
|
|||||||
|
|
||||||
location / {
|
location / {
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user