Fixing nginx as a reverse proxy for HLS streaming

Cerrado Publicado hace 5 años Pagado a la entrega
Cerrado Pagado a la entrega

Hi,

I'm no nginx professional or amateur for that mater, just know how to google a lot and I need help finishing of a reverse proxy.

What I currently have a main server that handles connections which then hands the client to one of 8 backend servers that deliver the stream in either TS or HLS. I want to put a proxy at the front that acts as the main server but also delivers the stream (like an edge server i guess, but no caching) so that the origin servers are hidden.

I have got it to work with TS, but I can't for the life of me workout how to get it to work with HLS no matter how much I packet capture. It pulls the manifest fine but unlike with TS it isn't pulling the segments from the origin servers.

Here is the code I've done so far (could probably be cleaner but this was all done with google)

server {

listen 80;

server_name proxy_IP_here;

proxy_set_header Host $host;

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header X-Forwarded-Proto $scheme;

proxy_buffering off;

location ~ .(m3u8|mpd)$ {

proxy_pass backend_IP_for_Main;

proxy_intercept_errors on;

error_page 301 302 307 = @handle_redirects;

}

}

location / {

proxy_pass backend_IP_for_Main;

sub_filter 'dns_i_have_it_fildering_here' 'proxy_IP_here';

sub_filter_once off;

sub_filter_types text/javascript application/json;

proxy_intercept_errors on;

error_page 301 302 307 = @handle_redirects;

}

location @handle_redirects {

set $saved_redirect_location '$upstream_http_location';

proxy_pass $saved_redirect_location;

}

}

CentOs Linux Nginx PHP Ubuntu

Nº del proyecto: #18943180

Sobre el proyecto

9 propuestas Proyecto remoto Activo hace 4 años

9 freelancers están ofertando un promedio de £122 por este trabajo

tangramua

Hello! I can help you to fix nginx as a reverse proxy for HLS streaming. As for me I'm a professional system admin. For the last 10 years I was working as a senior system admin at hosting services provider where Más

£150 GBP en 3 días
(63 comentarios)
7.2
Savstac

I have 8 years of experience in managing complex linux architectures and managing cloud infrastructures. I have worked on many complex projects ( Private cloud setup on AWS, Load balancing clusters, Replication system Más

£85 GBP en 1 día
(62 comentarios)
5.6
linuxbot

Hi, Give me a chance to work with you, I have a great experience on ' IPTV / VOD ' Implementation, Maintenance, Migration, Hardening, Troubleshooting and Up-Gradation .. I`ll deliver ASAP..Expertise in back-end, Más

£150 GBP en 3 días
(31 comentarios)
4.9
superbpartner

Hi,dear. I am very interested in your project - 'Fixing nginx as a reverse proxy for HLS streaming'. I've already done this kind of project before. I'm a professional programmer with 12 years of experience. If you awar Más

£150 GBP en 1 día
(9 comentarios)
4.8
Pro4Magento

Good Day. Can help You properly setup your nginx as reverce proxy for hide/transmit your TS/HLS streams from your sources. Tnx and Regards.

£100 GBP en 1 día
(44 comentarios)
4.5
ngrantfreelance

Hi mate. I've worked with NGINX for years and I've set up reverse proxies for a number of different situations. It sounds like you're having trouble getting NGINX to work as a reverse proxy with HLS. If you can messa Más

£70 GBP en 3 días
(5 comentarios)
2.9
poiasd

I have my own server with which I use nginx, and have dabbled in HLS streaming before as well. I could help you out with what you need by testing around a bit (the exact error trace is still a bit unclear). Feel fr Más

£55 GBP en 3 días
(3 comentarios)
1.8