Coder Social home page Coder Social logo

alexxnica / mrseedbox Goto Github PK

View Code? Open in Web Editor NEW

This project forked from meshiest/mrseedbox

0.0 2.0 0.0 2.19 MB

An Opensource Seedbox powered by Docker, Compose, Let's Encrypt, Ruby, Redis, MySQL, ruTorrent, Emby, and React!

License: MIT License

Ruby 42.62% CSS 2.58% JavaScript 50.10% HTML 4.33% Shell 0.38%

mrseedbox's Introduction

Mr Seedbox

I use this repo to test weird coding habits on a larger scale, don't expect the code to be pretty

New Screenshots

(Old) Screenshots (Branch angular-ui)

Install process (Still wip, sorry!):

  1. Be running Linux
  • Install Git
  • Install docker
  • Install docker-compose
  • Create a Google API Project
  • Add the Google+ API library
  • Generate some Credentials for Oauth2
    • Application Type:
      • Web Application
    • Authorized origins:
      • https://localhost or https://yourdomain.com
    • Authorized redirect URIs:
      • https://localhost/oauth2callback or https://yourdomain.com/oauth2callback
  • git clone https://github.com/Meshiest/mrseedbox.git
  • cd mrseedbox
  • cp common.env.default common.env
  • cp docker-compose.yml.default docker-compose.yml OR cp letsencrypt-docker-compose.yml docker-compose.yml for letsencrypt
  • Edit your docker-compose.yml and common.env files (put google api client and secret in)
    • Make sure you change EXAMPLE.COM if you're using the letsencrypt dockerfile
  • Generate a SSL Cert: ./setup
    • If you are using LetsEncrypt, you can use certbot certonly --standalone
    • If you are using LetsEncrypt, make sure you generate a dhparam:
      • sudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048
  • The first person to connect and auth will be the "owner"
  • You will have to go through the initial emby setup at localhost:8096!
  • If you are migrating from the old versions, you may have to docker build backend before starting the containers. If that doesn't work, you should remove all containers and images associated with this app and ./start it again
  • Don't forget to add this to your MyAnimeList Custom CSS for the best experience: @import url(https://gist.githubusercontent.com/Meshiest/cf3a3a4e16f5669ce7540445bf5b4cbf/raw/style.css)

If you do use the above LetsEncrypt instructions, you should get some nice A+ SSL like this:

Commands (from shell):

  • ./start - should start and build containers
  • docker-compose up -d - same as above
  • ./stop - should stop containers
  • docker-compose kill ; docker-compose rm -f - same as above
  • ./db - should open db container for debugging
  • ./server - should restart sinatra server container (by force >:) )
  • docker-compose restart mrseedbox_backend_1 - should be a nicer way of doing above
  • docker logs -f mrseedbox_backend_1 - read logs from sinatra server
  • docker ps - list containers
  • docker exec -it mrseedbox_backend_1 bash - get a shell in the backend container
  • You should know that creating a debug file in the backend folder will prevent authentication

Contributing

Things You Need

  • You need docker
  • NPM/node

Updating the Backend (./backend)

  1. Make your changes
  2. docker build .
  3. ./start from the parent directory and docker logs -f mrseedbox_backend_1 and check if there were any problems starting the container

Updating the frontend (./backend/public/js)

  1. Change app.jsx
  2. npm install --only=dev in backend/public/js
  3. npm test

mrseedbox's People

Contributors

meshiest avatar

Watchers

James Cloos avatar  avatar

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.