mrlt8 / docker-wyze-bridge

WebRTC/RTSP/RTMP/LL-HLS bridge for Wyze cams in a docker container
GNU Affero General Public License v3.0
2.69k stars 172 forks source link

How to LLHLS behind reverse proxy? #625

Open Rathna-K opened 2 years ago

Rathna-K commented 2 years ago
  1. I am using the bridge behind a reverse proxy and I am able to see HLS using the env - WB_HLS_URL=http://my-hostname-or-ip:9090/ but when I enable LLHLS to true in docker compose, the stream fails and gives me an error saying request http instead of https. since I am already behind a reverse proxy, anyway to enable LLHLS without https?
  2. Also just noticed after last firmware update - I am seeing audio / speaker icon disabled in the stream and no audio. is this just me?
dsheehan commented 1 year ago

LLHLS protocol requires HTTP2, which in turn requires HTTPS.

In order to get the web-ui (port 5000) and LLHLS (port 8888) over a single port (port 443), I configure my reverse proxy forward to two different locations. In this case I use /hls/ for the LLHLS feed.

WB_HLS_URL=https://my_external_domain_name/hls/

In nginx it looks something like this (very stripped down):

location ~ ^/hls(?:/(.*))?$ {
    proxy_pass https://192.168.x.x:8888/$1;
}

location / {
    proxy_pass http://192.168.x.x:5000$request_uri;
}