Using nginx as a HLS reverse proxy with Envoy?

Šimon Tóth happy.cerberus at gmail.com
Tue Jul 13 17:54:18 UTC 2021


OK, after doing more research myself I'm pretty sure that nginx can't proxy
HLS streams.

It can proxy (pull) RTMP streams, however if I understand it correctly,
these streams have to be statically configured in configs (which is not my
use case).

-- 
Simon Toth

On Mon, Jul 12, 2021 at 10:34 AM Šimon Tóth <happy.cerberus at gmail.com>
wrote:

> Hi,
>
> I'm building a demonstration streaming system (for educational purposes -
> teaching system design) and I'm trying to figure out whether Nginx can be
> used as an HLS reverse proxy in conjunction with Envoy (for sticky load
> balancing).
>
> I have the backend servers that convert RTMP into HLS. Now in front of
> that, I want to have an autoscaling pool of reverse proxies that I have
> load-balance to using Envoy based on the stream (so that the same stream
> ends on the same process if possible).
>
> What I need from Nginx then is 2 things:
>
>    - Correctly proxy HLS streams.
>    - Report overload situations to Envoy, so that envoy can bounce to a
>    different replica if one gets overloaded.
>
> Is this possible? Any links to documentation or examples would be greatly
> appreciated as well.
>
> Thanks in advance,
> Simon Toth
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20210713/000162dd/attachment-0001.htm>


More information about the nginx mailing list