2

The headline basically says it, I have Nginx connect as a reverse proxy to one of my Icecast2 streams.

Now it would be nice if, for every new connection to Nginx, it would not proxy a new connection to the Icecast server but rather re-use its already existing (and sole) connection. What I am trying to achieve is that there basically is only one client to the Icecast stream at all, being the reverse proxy. Nginx then should somehow internally connect to itself so my bandwidth doesn't explode with every new listener at the Icecast server per se.

Can it be done?

1
  • I used docker containers to achieve it
    – w3sic3
    Apr 1, 2020 at 12:08

1 Answer 1

0

I'm not sure, but I don't think Nginx can relay an Icecast stream by itself.

If both servers are on different machines, separated by a network or the Internet, then I'd recommend to set up a second Icecast server as the relay.

Note that Icecast can listen to port 80/443 just fine. On Debian/Ubuntu it needs some modifications though to work correctly.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .