Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Stremio Docker fork which allows server to have a url prefix and basic auth

License

NotificationsYou must be signed in to change notification settings

Zaarrg/stremio-docker-prefix

 
 

Repository files navigation

Fork Disclaimer

  • 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.
EnvDefaultExampleDescription
URL_PREFIX-/stremio-serverSets a url prefix for the server

Nginx Setup

There are two ways to setup nginx. Everything here was setup using thestremio-docker image.

1. Using a prefix

    # Stremio-specific routelocation /stremio-server/{        # Strip stremio-serverrewrite ^/stremio-server/(.*) /$1break;proxy_passhttp://stremio-container:11470;}

2. Explicitly allowing (Recommended)

# 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;}

Basic Auth

  • 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!

Thoughts

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

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Dockerfile51.8%
  • TypeScript23.9%
  • JavaScript12.6%
  • Shell11.7%

[8]ページ先頭

©2009-2025 Movatter.jp