- Notifications
You must be signed in to change notification settings - Fork0
Stremio Docker fork which allows server to have a url prefix and basic auth
License
Zaarrg/stremio-docker-prefix
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
- This is a fork of the originalstremio-docker rep
- This fork modifes the server.js and adds the ability to define a prefix
- This Prefix can be added with the env URL_PREFIX
- This solution will probably not work.
- Recommended is tryingnginx conf first.
| Env | Default | Example | Description |
|---|---|---|---|
URL_PREFIX | - | /stremio-server | Sets a url prefix for the server |
There are two ways to setup nginx. Everything here was setup using thestremio-docker image.
# Stremio-specific routelocation /stremio-server/{ # Strip stremio-serverrewrite ^/stremio-server/(.*) /$1break;proxy_passhttp://stremio-container:11470;}
- TheStreaming Server URL would behttps://stremio.mydomain.com/stremio-server/
- If this does not work and videos for example dont play then you can try by explicitly allowing all routes the server might call.
- You can also find all routes inserver-routes.md
- You can find a example.confhere
# Stremio-specific routeslocation~ ^/(hlsv2|casting|local-addon|proxy|rar|zip|settings|create|removeAll|samples|probe|subtitlesTracks|opensubHash|subtitles|network-info|device-info|get-https|hwaccel-profiler|status|exec|stream){proxy_passhttp://stremio-container:11470;}location~ ^/([^/]+)/(stats\.json|create|remove|destroy){proxy_passhttp://stremio-container:11470;}location~ ^/([^/]+)/([^/]+)/(stats\.json|hls\.m3u8|master\.m3u8|stream\.m3u8|dlna|thumb\.jpg){proxy_passhttp://stremio-container:11470;}location~ ^/([^/]+)/([^/]+)/(stream-q-[^/]+\.m3u8|stream-[^/]+\.m3u8|subs-[^/]+\.m3u8){proxy_passhttp://stremio-container:11470;}location~ ^/([^/]+)/([^/]+)/(stream-q-[^/]+|stream-[^/]+)/[^/]+\.(ts|mp4){proxy_passhttp://stremio-container:11470;}location~ ^/yt/([^/]+)(\.json)?{proxy_passhttp://stremio-container:11470;}location = /(thumb\.jpg|stats\.json){proxy_passhttp://stremio-container:11470;}
- TheStreaming Server URL would behttps://stremio.mydomain.com/
- This solution should always work.
- You can find a example.confhere
- This also allows for theStremio Web URL andStreaming Server URL to be the same:
- Stremio Web URL accessible at:https://stremio.mydomain.com/
- Streaming Server URL:https://stremio.mydomain.com/
- With those solutions basic auth is as easy as adding it for the base domainhttps://stremio.mydomain.com/
- Stremio Web, Stremio Server and any addons are on the same base url and will be therefor protected!
- With basic auth simply visit Stremio Web login with basic auth and you are good to go!
As of my knowledge for now these are the best solutions to achive basic auth by having Stremio Web, Stremio Server and any addons on one url.
I personally recommend the second nginx setup as this allows for the server url to be the same as the web url and therefor begin a quite smooth solution. Even tho this might have the drawback when the Stremio Server gets updated it might block new endpoints.
Thank you for reading and have a wonderful time <3
About
Stremio Docker fork which allows server to have a url prefix and basic auth
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Languages
- Dockerfile51.8%
- TypeScript23.9%
- JavaScript12.6%
- Shell11.7%