alex-ahl / iptv-handler

Exclude unwanted channels based on group and generate a new M3U file with proxied streams and attributes. Streams get proxied through a webserver running on the app. Xtream support.
MIT License
41 stars 10 forks source link

Work behind a reverse proxy #4

Open gymnae opened 9 months ago

gymnae commented 9 months ago

In my setup, I have caddy v2 as HTTPS terminator in front of iptv-handler running inside a docker container. iptv-handler should be aware, that is's receiving http traffic but advertise a different port than it's listening to. So it listens on 3001 for HTTP traffic, but advertises as HTTPS on 443.

Right now I cannot forward normal HTTP 2 or HTTP 1.1 traffic to the container, I need to switch to h2c, which produces quite a lot of errors.

PS: Sorry for all the spam :)

alex-ahl commented 7 months ago

Hi,

Yes, I agree that this should be the case. I will fix this as soon as I can.

onestix commented 3 months ago

Hi @gymnae would I have the same issue if i were to run nginx proxy manager in front? Thanks for sharing your thoughts.