Gluetun x StremThru
Proxy stremio addons through your server
Repo URL: https://github.com/MunifTanjim/stremthru
Common usage for this is to run plex and stremio both with your debrid provider, in case they don't allow multiple IP.
I have made a caddy network for reverse proxy with docker network create -d bridge caddy
. Even if you don't use caddy you should still have to make a common network to connect with containers in different compose files.
StremThru
containers/stremthru/docker-compose.yml
containers/stremthru/redis.conf
containers/stremthru/users.acl
containers/stremthru/.env
Redis is optional, without Redis it will use in-memory storage. You can remove redis and STREMTHRU_REDIS_URI
to use in-memory storage
More info on these in the repo
Gluetun
containers/gluetun/docker-compose.yml
You can find provider related settings and info here https://github.com/qdm12/gluetun-wiki/tree/main/setup/providers
With this setup, all requests to torrentio.strem.fun domain will be done via proxy but the rest (including the streams) will go through your oracle server
Running
Run the gluetun
compose file first and then the stremthru
compose file.
Setup
Once you are done and running, go to https://stremthru.domain.com/stremio/store/configure
and choose Store Name StremThru
and Store Token is your username:password
from .env
(STREMTHRU_PROXY_AUTH
) base64 hashed. You can do it easily with terminal using
Copy the output of this and paste as Store Token. Now install it to Stremio and you should be able to see your library in Discover > Other > Store. Try to play something from there and then go to https://real-debrid.com/downloads and see if the ip for the file you ran is your VPS/server IP (not VPN!) or your IP. If it's not your server ip then something is wrong.
Anyways if it's your VPS/server IP then you are good to add Torrentio & Mediafusion
Mediafusion
Let's start with Mediafusion since it has integrated StremThru support. You can host your own mediafusion instance or use public instance like https://mediafusion.elfhosted.com/
Go to mediafusion and configure it. Go newbie/pro mode your wish.
In Streaming Provider Configuration choose Stremthru
as Streaming Provider. Then in service url enter your instance url like https://stremthru.domain.com
. Let store name be default (empty) and token is your base64 encoded username:password
.
Select only cached content streams (preferred) and the rest you can configure.
Then just install it.
Torrentio
To add torrentio, go to https://torrentio.strem.fun and then configure your preferences. Let Debrid Provider
be none, StremThru will handle it. Then right click on install and copy the link. Replace stremio://
with https://
Example manifest link
Now go to your stremthru instance and then wrap https://stremthru.domain.com/stremio/wrap/configure
There put the manifest link above ^^ in Upstream Manifest URL . Store Name is StremThru and Store Token is your base64 encoded username:password
.
Make sure to select Only Show Cached Content
and then install. That's it.
If this project helped you support Munif Tanjim
Guide written by Mini