livego icon indicating copy to clipboard operation
livego copied to clipboard

How to serve hls output under HTTPS

Open nilopaim opened this issue 3 years ago • 4 comments

Is there a way to publish http://{myip}:7002/{appname}/movie.m3u8 using HTTPS?

The page that will reproduce the stream is protected by HTTPS, but I'm get errors indicating that I can't use mixed content (HTTP and HTTPS) on same page.

Any hints?

nilopaim avatar Oct 18 '21 13:10 nilopaim

I'm not that deep into LiveGo, but it looks like SSL doesn't work out of the box. You have to put a SSL reverse proxy in front of it. In a Docker environment ideally via Traefik, alternatively with NGINX. That should do the thing :)

kaiiiiiiiii avatar Oct 19 '21 09:10 kaiiiiiiiii

@kaiiiiiiiii Thanks a lot for your answer.

I'm currently using Caddy and not Nginx, but I have the option of set a reverse proxy on Caddy either.

I'll try this approach.

Thanks.

nilopaim avatar Oct 19 '21 10:10 nilopaim

Hi, lal (another Go stream server) supported HLS over HTTPS original without proxy, you can try it out.

https://github.com/q191201771/lal

q191201771 avatar Dec 09 '21 13:12 q191201771

@q191201771 Thanks a lot. I'll verify this.

nilopaim avatar Dec 15 '21 11:12 nilopaim