Re: Proxy
"Yaniv Sharon" <[email protected]> Wed, 27 Jul 2016 20:50:42 +0200
| Newsgroups | gmane.comp.audio.icecast.devel |
|---|---|
| Message-ID | <[email protected]> |
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: [email protected] [mailto:[email protected]]
Sent: Wednesday, July 27, 2016 6:48 PM
To: 'Yaniv Sharon'; [email protected]
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:[email protected]] On Behalf Of Yaniv
Sharon
Sent: Wednesday, July 27, 2016 7:14 AM
To: [email protected]
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.
_______________________________________________
Icecast-dev mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/icecast-dev