I have Tvheadend 4.2.8-dirty, and to stream a TV channel on a website, I used Apache to create a reverse proxy for the channel. Below is the configuration made in Apache: `<VirtualHost *:443>
ServerName example-site.org
# SSL Configuration
SSLEngine On
SSLCertificateFile /etc/letsencrypt/live/example-site.org/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/example-site.org/privkey.pem
# Proxy for the TV channel with authentication
ProxyPass /channel-tv http://example-site.org:9981/stream/service/f505afe20fa436831dc79eef5fad5d79
ProxyPassReverse /channel-tv http://example-site.org:9981/stream/service/f505afe20fa436831dc79eef5fad5d79
# Automatic authentication for the stream
<Location /channel-tv>
ProxyPass http://example-site.org:9981/stream/service/f505afe20fa436831dc79eef5fad5d79
ProxyPassReverse http://example-site.org:9981/stream/service/f505afe20fa436831dc79eef5fad5d79
RequestHeader set Authorization "Basic cHJveHl1c2VyOnByb3h5cGFzcz=="
</Location>
# Other site configurations
DocumentRoot /var/www/html
</VirtualHost>
` When I open it in Firefox or in the video player on the site, it continuously downloads a file: canal-tv.ts.