Code Monkey home page Code Monkey logo

psyb0t / safe-stremio Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 1.0 9 KB

Safe-Stremio is your gateway to running Stremio Server and Stremio Web within a Docker container, wrapped in layers of security, anonymity, and badassery. This ain't your grandma's streaming setup—this is for digital pirates and cyberpunks who value privacy and control.

License: Do What The F*ck You Want To Public License

Dockerfile 18.59% Shell 81.41%
docker docker-compose media-center pirate raspberry-pi stremio stremio-server stremio-web watch-series movies-online

safe-stremio's Introduction

Safe-Stremio: Your Secure, Pirate-Friendly Streaming Solution

Welcome to the future of secure, decentralized streaming! Safe-Stremio is your gateway to running Stremio Server and Stremio Web within a Docker container, wrapped in layers of security, anonymity, and badassery. This ain't your grandma's streaming setup—this is for digital pirates and cyberpunks who value privacy and control.

Note: If you encounter the "Streaming Server is not available" error, make sure to check the Final Steps section for instructions on how to resolve it.

Table of Contents

  1. Features
  2. Get Up and Running
  3. Configuration
  4. Final Steps
  5. Nginx Configuration
  6. Logging and Monitoring
  7. Entrypoint Script: run.sh
  8. License

Features

  • Basic Authentication: Protect your streaming kingdom with simple but effective access control.
  • Rate Limiting: Keep the brute force attacks at bay. Ain't nobody breaking in here!
  • VPN Integration: Your IP is your identity—keep it hidden from the prying eyes of the net with seamless OpenVPN integration.
  • Self-Hosted Awesomeness: Your server, your rules. Stream what you want, when you want.

Get Up and Running

Docker Pull Command

docker pull psyb0t/safe-stremio:latest

Example Docker Compose

Spin up your secure streaming fortress with the following Docker Compose file:

version: "3.8"

services:
  safe-stremio:
    image: psyb0t/safe-stremio:latest
    cap_add:
      - NET_ADMIN
    environment:
      - WITH_OPENVPN=true
      - USERNAME=user
      - PASSWORD=pass
    ports:
      - "8080:80"
    volumes:
      - ./openvpn/config.ovpn:/vpn-config.ovpn
      - ./openvpn/auth.txt:/vpn-auth.txt
    restart: always

Basic Docker Run Command

If you prefer running the container without Docker Compose, here's an example using basic Docker commands:

docker run -d \
  --cap-add=NET_ADMIN \
  -e WITH_OPENVPN=true \
  -e USERNAME=user \
  -e PASSWORD=pass \
  -p 8080:80 \
  -v $(pwd)/openvpn/config.ovpn:/vpn-config.ovpn \
  -v $(pwd)/openvpn/auth.txt:/vpn-auth.txt \
  --restart always \
  psyb0t/safe-stremio:latest

Configuration

  1. OpenVPN Setup:

    • Place your OpenVPN configuration file at ./openvpn/config.ovpn.
    • If your VPN requires credentials, save them in ./openvpn/auth.txt.
  2. Environment Variables:

    • WITH_OPENVPN=true: Enable VPN for anonymous streaming.
    • USERNAME and PASSWORD: Set these for HTTP basic authentication.
  3. Ports:

    • The container exposes port 80. Map it to any port on your host, e.g., 8080:80.

Final Steps

After firing up your container, head over to your Stremio Web UI and navigate to Settings. Under Streaming, set your server URL to http://yourdomain:8080/stremio-server/. This ensures your Stremio Web client talks to your self-hosted server. Now you're ready to stream like a true digital pirate.

Nginx Configuration

Safe-Stremio comes pre-configured with Nginx to handle HTTP requests, including:

  • Proxying Requests: Routes /stremio-server/ to the Stremio server.
  • Serving Static Files: Direct access to the Stremio Web UI.
  • Auth and Rate Limiting: Only legit users allowed. No spamming!

Logging and Monitoring

The container continuously monitors public IP and running processes. If your VPN drops, the container shuts down to prevent exposing your real IP. Logs are your friend; they tell you exactly what's happening.

Entrypoint Script: run.sh

The entrypoint script orchestrates everything, ensuring all services start correctly and remain protected. If anything goes south, it gracefully shuts everything down.

License

This project is licensed under the WTFPL. Do whatever the fuck you want.

Stay secure. Stay anonymous. Happy streaming!


This is Safe-Stremio—streaming for the free spirits of the digital age. Hack the planet, one stream at a time.

safe-stremio's People

Contributors

psyb0t avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

korben00

safe-stremio's Issues

Streaming Server is not available

Hi,

Found this docker image and it's super great and helpful. I got the docker image running, open it up with http://:8080, all good, but it complains "Streaming Server is not available", i tried to install this stream-service on my ubuntu 22.04 following the chatgpt tutorial but the "stremio-service.service - Stremio Service" failed, do you have any tutorial to install this? or am i on the wrong path?

Thank you so much for the help.

open_vpn set up is not working

Hi,

I am trying to set up open vpn configuration. Here are what i found:

  1. on ubuntu, i can connect through sudo openvpn --config /etc/openvpn/config.ovpn, with auth.txt set up
  2. using docker-compose.yml, but set vpn as false, i can open up the stremio web ui at :8080

But when i set vpn as true and place the config and auth file in ./openvpn folder, kick off the docker, the web ui won't load, is there something wrong on the openvpn set up? (I used to only run openvpn on the ubuntu system level, but now would love to only run it inside the docker)

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.