[Icecast-dev] Proxy
Yaniv Sharon
yaniv.sharon at gmail.com
Wed Jul 27 18:50:42 UTC 2016
Thank you all.
Except from the buffering it was the fact that I used "localhost" instead of
127.0.0.1 in the proxy_pass.
Now my configuration is:
location /stream1/ {
proxy_buffering off;
proxy_ignore_client_abort off;
proxy_intercept_errors on;
proxy_next_upstream error timeout invalid_header;
proxy_redirect off;
proxy_set_header X-Host $http_host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_connect_timeout 60;
proxy_send_timeout 21600;
proxy_read_timeout 21600;
proxy_pass http://127.0.0.1:8000/stream1;
}
location /stream2/ {
proxy_buffering off;
proxy_ignore_client_abort off;
proxy_intercept_errors on;
proxy_next_upstream error timeout invalid_header;
proxy_redirect off;
proxy_set_header X-Host $http_host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_connect_timeout 60;
proxy_send_timeout 21600;
proxy_read_timeout 21600;
proxy_pass http://127.0.0.1:8000/stream2;
}
I did it correct for icecast?
->>> location /stream1/
->>> proxy_pass http://127.0.0.1:8000/stream1;
And one more thing,
the proxy passing the user agent of the listener and I can see that on the
icecast dashboard,
But I can't see the IP address.for several hours im trying with the nginx
documentation but without ant success.
Thanks in advance.
From: jorr at streamguys.com [mailto:jorr at streamguys.com]
Sent: Wednesday, July 27, 2016 6:48 PM
To: 'Yaniv Sharon'; icecast-dev at xiph.org
Subject: RE: [Icecast-dev] Proxy
We've tested this as working relatively well, disable buffering is the major
key if I recall. Otherwise the NGINX server loads up data before handing off
to the client.
server {
listen 80;
server_name my_dns_name.tldn;
location / {
proxy_buffering off;
proxy_ignore_client_abort off;
proxy_intercept_errors on;
proxy_next_upstream error timeout invalid_header;
proxy_redirect off;
proxy_set_header X-Host $http_host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_connect_timeout 60;
proxy_send_timeout 21600;
proxy_read_timeout 21600;
proxy_pass http://my_dns_name.tldn:8010;
}
}
More information about said directive can be found here:
http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_buffering
Jesse
From: Icecast-dev [mailto:icecast-dev-bounces at xiph.org] On Behalf Of Yaniv
Sharon
Sent: Wednesday, July 27, 2016 7:14 AM
To: icecast-dev at xiph.org
Subject: [Icecast-dev] Proxy
Hi all,
I want to do a proxy to icecast (:8000) with nginx (:80).
Its working for me, stream is running on port 80, but on the first loading
is "pending" For a long time before its starts play.
Who using the "proxy_pass" on nginx and can help?
Thnx.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xiph.org/pipermail/icecast-dev/attachments/20160727/e9c83cf8/attachment-0001.html>
More information about the Icecast-dev
mailing list