Using Stremio Server with Private IP - tsaridas/stremio-docker GitHub Wiki
Scenario 3: HTTPS with Private IP
This is useful for accessing Stremio via HTTPS on your local network. It generates a certificate for a *.stremio.rocks subdomain that resolves to your private IP.
-
Set
IPADDRESSto your server's private LAN IP (e.g.,192.168.1.10). -
The container will generate a certificate for a domain like
192-168-1-10.519b6502d940.stremio.rocks. Find the exact FQDN from the.pemfilename in your mounted volume. -
Add an entry to your hosts file on your client machine to point the FQDN to your server's private IP.
- Linux/macOS:
/etc/hosts - Windows:
c:\Windows\System32\Drivers\etc\hosts
192.168.1.10 192-168-1-10.519b6502d940.stremio.rocks - Linux/macOS:
-
Run the container:
docker run -d \ --name=stremio-docker \ -e IPADDRESS=192.168.1.10 \ -e AUTO_SERVER_URL=1 \ -p 8080:8080 \ -v ./stremio-data:/root/.stremio-server \ tsaridas/stremio-docker:latest -
Access Stremio at
https://192-168-1-10.519b6502d940.stremio.rocks:8080.
To find the FQDN that the certificate is pointing to, look at the folder you mounted for a file with a .pem extension. The filename is the domain you need to add to your hosts file in case of local IP address.
Using Docker Compose:
services:
stremio:
image: tsaridas/stremio-docker:latest
restart: unless-stopped
environment:
IPADDRESS: 192.168.1.10 # Replace with your private IP
AUTO_SERVER_URL: 1
ports:
- "8080:8080"
volumes:
- "./stremio-data:/root/.stremio-server"