Ditutup

Fixing nginx as a reverse proxy for HLS streaming

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;

}

}

Kemahiran: CentOs, Linux, Nginx, PHP, Ubuntu

Lihat lagi: nginx reverse proxy cache, install nginx reverse proxy, nginx reverse proxy, hls server tutorial, nginx rtmp cors, nginx rtmp html5, nginx stream audio, nginx hls reverse proxy, nginx hls, nginx video streaming proxy, nginx mp4 streaming example, nginx reverse proxy config, nginx reverse proxy configuration, nginx reverse proxy forward ip, nginx reverse proxy sessions, squid nginx reverse proxy, nginx reverse proxy round robin, forward source nginx reverse proxy, virtualmin nginx reverse proxy, centos nginx reverse proxy iis

Tentang Majikan:
( 0 ulasan ) London, United Kingdom

ID Projek: #18943180

11 pekerja bebas membida secara purata £123 untuk pekerjaan ini

kuldeepvk

Hi, I have more than 11 years of experience in this and will do [login to view URL] discuss.I will do this" I want to put a proxy at the front that acts as the main server but also delivers the stream (like an edge serv Lagi

£88 GBP dalam 0 hari
(294 Ulasan)
6.9
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 Lagi

£150 GBP dalam 3 hari
(53 Ulasan)
6.6
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 Lagi

£85 GBP dalam sehari
(35 Ulasan)
5.1
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, Lagi

£150 GBP dalam 3 hari
(29 Ulasan)
4.8
Ivan927

Hello! I am very interested in your post project. i am really looking for this kind of project for a long time in freelancer since i have rich experience on it. I think this project is very suitable for me and i am Lagi

£150 GBP dalam 3 hari
(10 Ulasan)
4.6
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 Lagi

£150 GBP dalam sehari
(8 Ulasan)
4.6
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 dalam sehari
(33 Ulasan)
4.3
awsdevopro

Hi, Docker & kubernetes master here at your service. Currently I'm a full time employee at [login to view URL] (In-House software farm) where my position is DevOps. Have been deployed in docker and AWS servers, some are Lagi

£250 GBP dalam 3 hari
(11 Ulasan)
4.2
bluebear1888

Hi, Dear!. I would like to express my heartfelt greetings about my introduction. The project you are going to develop is the area I know most about. I have worked in the web (Codeignitor, Laravel, Yii, Node.js, Angu Lagi

£100 GBP dalam sehari
(11 Ulasan)
3.5
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 Lagi

£55 GBP dalam 3 hari
(3 Ulasan)
1.8
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 Lagi

£70 GBP dalam 3 hari
(2 Ulasan)
1.6