Heroku AriaNG 21vianet

by sagirisayang

GitHub Readme.md

Heroku-AriaNG-21vianet. Heroku-AriaNG

Forked from https://github.com/xinxin8816/heroku-ariang-21vianet

What's new:

  1. Refreshed the login page (but it'll load slower than before)
  2. Since the "show downloaded files" button didn't work, I managed to remove it (I also think that the script originally will move the downloaded files to the Rclone's destination, instead of copy it, so the server won't store those files and it'll run better. You also don't have to wait 30 minutes of inactivity in order to free up the server's storage. I got this inclusion by seeing on-complete.sh, please refer to it, get me know if I was mistaken)
  3. Deploy button now works great

What's great from this release:

  1. Uses Gclone mod instead of original Rclone (the dev said that this is able to break the 750GB Gdrive limit, I haven't test it yet)
  2. Deletes the downloaded files right after it's downloaded so it's better for public torrent site since the storage is more likely to have more free space at a time (See on-complete.sh)
  3. Uses 21vianet patch that the dev said it fixes the painfully slow OneDrive transfer
  4. Supports double mount for Rclone, you can upload the files to two places at one time (If you only need one, just leave the second mount config blank)

Original descriptions: One-click to build AriaNG on Heroku, and upload to cloud drive when the file download completed.

Deploy

Using Rclone with 21vianet mod and Aria2, even UNRAR online by command terminal flexibly? Try this Heroku Rclone 21vianet

This repository forked from maple3142/heroku-aria2c and can't merged.

Abuse Warning

This APP designed for best performance so uses a lot of resources.
Please be careful with that your Heroku account may be suspended.

Improvement

  1. Rclone with 21vianet patch and Gclone mod.
  2. Support mount double cloud drive.
  3. Improve performance of the built-in Aria2c and Rclone.

Connect Cloud Drive With Rclone

  1. Setup Rclone by following Rclone Docs.
    Optional: using service account setup with Gclone Rradme to break Google Drive 750GB limit, Chinese users setup with 21vianet patch to connect OneDrive by 21vianet.
    You can find your config from there:
Windows: %userprofile%\.config\rclone\rclone.conf
Linux: $HOME/.config/rclone/rclone.conf

Rclone with 21vianet patch and Gclone mod provided by xhuang.

  1. Open your rclone.conf file, it should look like this:
[DRIVENAME A]
type = WHATEVER
client_id = WHATEVER
client_secret = WHATEVER
scope = WHATEVER
china_version = WHATEVER
token = WHATEVER

[DRIVENAME B]
type = WHATEVER
client_id = WHATEVER
client_secret = WHATEVER
scope = WHATEVER
china_version = WHATEVER
token = WHATEVER

others entries...
  1. Find the drive you want to use, and copy its [DRIVENAME A] ... to ... token = ... section.
  2. Replace all linebreaks with \n
  3. Deploy with the button above, and paste that text in RCLONE_CONFIG
  4. Set RCLONE_DESTINATION to a path you want to store your downloaded in [DRIVENAME A], format is [DRIVENAME A]:[REMOVE PATH A]
  5. If you mount a second cloud drive, Set RCLONE_DESTINATION_2 same as 6