aymene69 / stremio-jackett

Elevate your Stremio experience with seamless access to Jackett torrent links, effortlessly fetching torrents for your selected movies within the Stremio interface.
189 stars 35 forks source link

Forcing http in host (req.protocol) [Bug] #66

Closed ash32152 closed 7 months ago

ash32152 commented 7 months ago

Describe the bug I'm unable to play any of the scraped links as it's passing the url back as http://yourdomain.tld/getstream rather than https://

To Reproduce stremio-jackett behind traefik, connecting to a jackett instance behind traefik protected by SSL, search for a movie and look in the logs for the console.log host

Expected behavior play the link selected, instead it fails as I'm using stremio app which uses https:// and requires https://, the app was installed under the https://addon.tld

Screenshots If applicable, add screenshots to help explain your problem.

Your system info (please complete the following information):

Additional context 16:24:31 0|stremio-jackett | http://stremjack.tld.uk 16:24:31 0|stremio-jackett | Searching on Jackett, will return debrid links... 16:24:31 0|stremio-jackett | https://jackdebrid.tld.uk/api/v2.0/indexers/all/results/torznab/api?apikey=&t=movie&cat=2000&q=The%20Hill&year=2023 16:24:38 0|stremio-jackett | 10 16:24:49 0|stremio-jackett | Torrent info: The.Hill.2023.720p.AMZN.WEBRip.800MB.x264-GalaxyRG 16:24:49 0|stremio-jackett | Getting RD link... 16:24:49 0|stremio-jackett | http://stremjack.tld.uk/getStream/realdebrid/

aymene69 commented 7 months ago

You used the guide?

ash32152 commented 7 months ago

Yes, i dont host it via oracle/elfhosted or use duckdns, i have a paid for tld, I'm hosting this with traefik, already have certs, it has a https entrypoint, I browse to it via https, some reason it spits out the getstream path as http:// in the container.

aymene69 commented 7 months ago

put use tls in traefik label for the container

ash32152 commented 7 months ago

it is... I only expose 443, have .tls=true on all my labels, as mentioned, browse both fine via https, it's when the add-on tries to output the getstream link it downgrades to http.

no probs, I'm using a different jackett add-on that works, thanks though :)