One-click to build AriaNG on Heroku, and upload to cloud drive when the file download completed.
在 Heroku 上一键搭建 AriaNG ，并在文件下载完成后上传至网盘。
This repository forked from maple3142/heroku-aria2c and can't merged.
这个项目是 maple3142/heroku-aria2c 的不可合并分支。
This APP designed for best performance so uses a lot of resources.
Please be careful with that your Heroku account may be suspend.
Windows: %userprofile%\.config\rclone\rclone.conf Linux: $HOME/.config/rclone/rclone.conf
Optional: Using service account setup with Gclone to break Google Drive 750GB limit, or easier connect to folder or Team Drive by destination ID. Create a new folder, such as
/accounts/, upload your json in it. Open rclone config and edit
service_account_file_path = /app/accounts/ as the json paths.
Rclone with 21vianet patch and Gclone mod provided by xhuang.
rclone.conffile, 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...
[DRIVENAME A] ...to
... token = ...section.
RCLONE_DESTINATIONto a path you want to store your downloaded in
[DRIVENAME A], format is
[DRIVENAME A]:[REMOVE PATH A]
RCLONE_DESTINATION_2same as step 6
Heroku Free Dyno will idle when there is no incoming request within 30 minutes, and your files will be deleted, so use Rclone to breaking this or use Heroku Hobby Dyno.
By the way, the use of memory exceeds the limit of 512M for a long time, Heroku dyno also will idle.
Heroku-AriaNG APP will automatically make request to prevent idling when connect cloud drive with Rclone, but Heroku Dyno reset every 24 hours is inevitable.
Go to Heroku Dashboard, and view application logs.
aria2c.conf, some global variables that can be edit, but believe me, the best parameters for best performance have been provided.
Sure. The file will be automatically deleted after the upload is complete. you can also delete the file by deleting the aria2 task.
Nope. This README is enough.