<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">OK, after doing more research myself I'm pretty sure that nginx can't proxy HLS streams.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">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).</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">-- </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Simon Toth</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 12, 2021 at 10:34 AM Šimon Tóth <<a href="mailto:happy.cerberus@gmail.com">happy.cerberus@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Hi,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">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).</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">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).</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">What I need from Nginx then is 2 things:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><ul><li>Correctly proxy HLS streams.</li><li>Report overload situations to Envoy, so that envoy can bounce to a different replica if one gets overloaded.</li></ul><div>Is this possible? Any links to documentation or examples would be greatly appreciated as well.</div><div><br></div><div>Thanks in advance,</div><div>Simon Toth</div></div></div>
</blockquote></div>