Build AriaNG on Heroku, and upload to cloud drive when the file download completed.
在 Heroku 上搭建 AriaNG ,并在文件下载完成后上传至网盘。
Using Rclone with 21vianet mod and Aria2, even UNRAR online flexibly? Try this Heroku Rclone 21vianet
想更灵活的使用 Aria2、Rclone,甚至是 RAR 在线解压?试试这个 Heroku Rclone 世纪互联版
Heroku are actively banning this APP now.
官方正积极封禁本应用。
Your account will be SUSPENDED in highly possible.
现在部署极有可能封号。
This APP is no longer updated.
本应用今后将不再更新。
- Abuse Warning 滥用警告
- Improvement 改进
- Deploy by Docker 通过 Docker 部署
- Deploy by One-Click 一键部署
- Connect Cloud Drive 连接网盘
- FAQ 常见问题
- Thanks 致谢
- Rclone with 21vianet patch and Gclone mod. 融合了世纪互联补丁和 Gclone 模组的 Rclone。
- Support mount double cloud drive. 支持双网盘挂载同步。
- Improve performance of the built-in Aria2c and Rclone. 大幅提升内置 Aria2c 和 Rclone 性能。
- Unpack(Beta) ZIP/RAR/7Z with password or sub-volume. 解压分卷或带密码的压缩包(测试)。
- Fix some little issues in fork source. 修复项目源的一些其他小问题。
- Docker
- Heroku CLI
- git
- Ability to use terminal
- Run
heroku login
to login, thenheroku container:login
too. - Clone this repository and enter it. (PS: Please run
git config --global core.autocrlf false
beforegit clone
if you are using Windows.) - Run
heroku apps:create APP_NAME
to create it. - Run
heroku config:set -a APP_NAME ARIA2C_SECRET=ARIA2_SECRET
andheroku config:set -a APP_NAME HEROKU_APP_NAME=APP_NAME
. - Run
heroku container:push web -a APP_NAME
andheroku container:release web -a APP_NAME
. - Run
heroku open -a APP_NAME
and it will open your browser to deployed instance.
Pay attention please: deploy by One-Click uses the Heroku built-in environment, that means your account might banned immediately.
请注意:一键部署使用 Heroku 内置环境,可能会导致立即被封号
- Setup Rclone by following Rclone Docs, Chinese users can 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
Optional: Using service account setup with Gclone to break Google Drive 750GB limit, or easier connect to folder or Team Drive by destination ID. First, open your rclone config and edit service_account_file_path = /app/accounts/
as the SA json paths.
- Deploy by Docker: Create a new folder in your local repository root path after git clone, such as
/accounts/
, copy your SA json in it. - Deploy by One-Click: Fork this repository, and create a new folder in your forked repository, such as
/accounts/
, upload your SA json in it.
- 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...
- Set Rclone Config: Find the drive you want to use, and copy its
[DRIVENAME A] ...
to... token = ...
section, and replace all linebreaks with\n
, and copy this TEXT.
- Deploy by Docker: Run
heroku config:set -a APP_NAME RCLONE_CONFIG=THAT_TEXT
. - Deploy by One-Click: Set
THAT_TEXT
in theRCLONE_CONFIG
blank.
- Set Rclone Upload Destination:
[DRIVENAME A]:[REMOVE PATH A]
means upload to[REMOVE PATH A]
in[DRIVENAME A]
.[DRIVENAME A]
is the drive friendly name in rclone config,[REMOVE PATH A]
is a remote path.
- Deploying by Docker: Run
heroku config:set -a APP_NAME RCLONE_DESTINATION=[DRIVENAME A]:[REMOVE PATH A]
. - Deploying by One-Click: Set
[DRIVENAME A]:[REMOVE PATH A]
in theRCLONE_DESTINATION
blank.
- If you mount a second cloud drive, Set
RCLONE_DESTINATION_2
same as step 4.
Not really, if you deployed previously and the APP is still working well, please enjoy it just like before.
If you want to deploy a new APP or rebuild the previously APP, I recommend using Docker to prevent account banned.
Heroku are actively prevent this APP. I recommend using Docker deploy a new APP or rebuild the previously APP to prevent account banned.
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.
Open on-complete.sh
and aria2c.conf
, some global variables that can be edit, but believe me, the best parameters for best performance have been provided.
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.
Many thanks for maple3142/heroku-aria2c and P3TERX/aria2.conf.