Code Monkey home page Code Monkey logo

pla-den-tor's Introduction

The most legalest private file (specifically for manga, anime, music) hosting ever, on TOR. Includes a manga viewer. Nothing fancy. Uses HTTP Basic Authentication with daily rotating password derived from a master password.

Most of the code is a modification of hedgeblog, albeit with some pretty significant modifications in places (templates, host.ts, build.ts).

Since TOR is pretty slow to download large files (eg, videos), the videos are streamed so load time isn't as bad as one might expect (HTTP protocol is amazing, browsers are amazing).

Optionally, this site can be run locally or on the regular web with HTTP(S).

Running

After first cloning or downloading the repository:

npm install
npm install typescript -g
npm run compile
npm run build
# and you may have to do:
mkdir tor
mkdir tor/hidden_service

Don't forget to make a .env file with the master_password variable, from which all the daily passwords are dervied.

Then to actually run:

bash tor_prebuilt.sh

Make sure to set a master password! See .env.example. Enter in the master password at /password to get the current day and the next day's password.

Tips

Adding media

Add it to the relevant static directory (/static_assets/anime_assets, /static_assets/manga_assets, or /static_assets/music_assets), and just rerun npm run build.

To mark it as a favourite, create an entry for it in favourites_info.json. See favourites_info.json.example for an example.

Hosting Multiple TOR Hidden Services

If you are running multiple TOR hidden services, you will need to modify the .torrc file.

Master Password

To set the master password, create a .env file like so:

master_password=example_password_do_not_actually_use_this_as_your_password_obviously

Username

The username doesn't matter. Only the password is important.

Disclaimer

blah blah blah meant for private use, I would never dream of breaking copyright law blah blah blah not the intended purpose.

pla-den-tor's People

Contributors

stjet avatar

Stargazers

 avatar

Watchers

 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.