On 27 Jul 2016, at 20:50, Yaniv Sharon wrote:> Thank you all. > […] > 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.Icecast does not support being reverse proxied and things like playlists and displaying the clients correct IP address will not work. Furthermore reverse proxying can lead to performance issues as most web servers are not primarily designed to be a streaming server like Icecast is. Feel free to play around with it, but please keep in mind that things might not work as expected.
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>
Well, it's not good news... All started because now I have machine with icecast service on port 80, And I want to serve also HLS files on the same port 80. So my thought was to operate icecast on port 8000 (and the studio sources broadcasting to there directly) And Nginx will proxy the icecast on port 80 for the listeners. What gave me the confidence to thought about it, was the fact that I understand that "Centova" itself using Nginx proxy... Now after I understand from you guys that icecast will not love to work with proxy, What I can actually do to perform the solution that I want? -----Original Message----- From: Icecast-dev [mailto:icecast-dev-bounces at xiph.org] On Behalf Of Marvin Scholz Sent: Wednesday, July 27, 2016 9:00 PM To: icecast-dev at xiph.org Subject: Re: [Icecast-dev] Proxy On 27 Jul 2016, at 20:50, Yaniv Sharon wrote:> Thank you all. > […] > 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.Icecast does not support being reverse proxied and things like playlists and displaying the clients correct IP address will not work. Furthermore reverse proxying can lead to performance issues as most web servers are not primarily designed to be a streaming server like Icecast is. Feel free to play around with it, but please keep in mind that things might not work as expected. _______________________________________________ Icecast-dev mailing list Icecast-dev at xiph.org http://lists.xiph.org/mailman/listinfo/icecast-dev