media no longer copied twice

This commit is contained in:
jetstream0
2023-11-06 05:25:47 +00:00
parent 59d2ffe544
commit ae0166b238
10 changed files with 122 additions and 43 deletions

View File

@@ -1,8 +1,8 @@
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](https://github.com/jetstream0/hedgeblog), albeit with some pretty significant modifications in places (templates, host.ts, build.ts, saki.ts).
Most of the code is a modification of [hedgeblog](https://github.com/jetstream0/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!).
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).
# Running
After first cloning or downloading the repository:
@@ -25,4 +25,23 @@ Then to actually run:
bash tor_prebuilt.sh
```
# Tips
## Adding media
Add it to the relevant static directory (`/static_assets/anime_assets`, `/static_assets/manga_assets`, or `/static_assets/music_assets`), and create an entry for it in `host_info.json`.
## Hosting Multiple TOR Hidden Services
If you are running multiple TOR hidden services, you will need to modify the [.torrc file](https://stackoverflow.com/questions/14321214/how-to-run-multiple-tor-processes-at-once-with-different-exit-ips#18895491).
## 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.