Configuration Options - tsaridas/stremio-docker GitHub Wiki
Configuration Options
These options can be configured by setting environment variables using -e KEY="VALUE"
in the docker run
command.
Env | Default | Example | Description |
---|---|---|---|
IPADDRESS |
- | 192.168.1.10 |
Set this to a valid IPv4 in order to enable https and generate certificates with stremio domain. If you set this to 0.0.0.0 it will try to automatically get your public ip. Getting the public ip and DNS is not reliable and might need multiple retries. It will not work for IPv6 |
SERVER_URL |
- | http://192.168.1.10:11470/ |
Manually sets the streaming server URL. This is useful when you want to force a specific URL. |
AUTO_SERVER_URL |
0 | 1 | When set to 1 , the streaming server URL is automatically detected from the browser's URL. This is the recommended setting for most users. |
NO_CORS |
- | 1 |
Set to disable server's cors |
CASTING_DISABLED |
- | 1 |
Set to disable casting. You should set this to 1 if you're getting SSDP errors in the logs |
WEBUI_LOCATION |
- | http://192.168.1.10:8080 |
Sets the redirect page for web player and automatically sets up streaming server for you when one tries to access server at port 11470 or 12470. Default is https://app.strem.io/shell-v4.4/ |
WEBUI_INTERNAL_PORT |
8080 | 9090 |
Sets the port inside the docker container for the web player |
FFMPEG_BIN |
- | /usr/bin/ |
Set for custom ffmpeg bin path |
FFPROBE_BIN |
- | /usr/bin/ |
Set for custom ffprobe bin path |
APP_PATH |
- | /srv/stremio-path/ |
Set for custom path for stremio server. Server will always save cache to /root/.stremio-server though so it's only for its config files. |
DOMAIN |
- | your.custom.domain |
Set for custom domain for stremio server. Server will use the specified domain for the web player and streaming server. This should match the certificate and cannot be applied without specifying CERT_FILE |
CERT_FILE |
- | certificate.pem |
Set for custom certificate path. The server and web player will load the specified certificate. |
USERNAME |
- | myusername |
Set for custom username for http simple authentication. |
PASSWORD |
- | Mypassword |
Set for custom password for http simple authentication. |
DISABLE_CACHING |
- | 1 |
Disable caching for server if set to 1. |
There are multiple other options defined but probably best not setting any.
Examples
Basic HTTP Setup
docker run -d \
--name=stremio-docker \
-e NO_CORS=1 \
-e AUTO_SERVER_URL=1 \
-p 8080:8080 \
tsaridas/stremio-docker:latest
HTTPS with Authentication
docker run -d \
--name=stremio-docker \
-e IPADDRESS=0.0.0.0 \
-e AUTO_SERVER_URL=1 \
-e USERNAME=admin \
-e PASSWORD=securepassword \
-p 8080:8080 \
-v ./stremio-data:/root/.stremio-server \
tsaridas/stremio-docker:latest
Custom Domain with Certificate
docker run -d \
--name=stremio-docker \
-e DOMAIN=stremio.mydomain.com \
-e CERT_FILE=mycert.pem \
-e AUTO_SERVER_URL=1 \
-p 8080:8080 \
-v ./stremio-data:/root/.stremio-server \
tsaridas/stremio-docker:latest
Disable Casting (if SSDP errors)
docker run -d \
--name=stremio-docker \
-e NO_CORS=1 \
-e AUTO_SERVER_URL=1 \
-e CASTING_DISABLED=1 \
-p 8080:8080 \
tsaridas/stremio-docker:latest