Aria2-Offline lets you download files using your Linux server, so your local computer can be offline. Once the download is finished, you can easily get the files from your server to your local machine.
- Easy to install
- Easy to use
- Great download speed powered by aria2
- Show remaining disk space of you server
- Auto detect whether download is finished
- You can change file names even when download is not finished
- You can even start an offline download from you mobile phone
- Download this project to your Linux server
$ git clone https://github.com/apm1467/aria2-offline.git
-
Install
docker
anddocker-compose
if you haven't yet; Make sure the ports8000
and6800
of your server are usable -
Build & start containers
$ cd aria2-offline/
$ docker-compose up -d --build
-
Go to
http://your_server_ip:8000
in browser; default user isexample
and password ispasswd
-
You can start a download now
- Change login name & password by overwriting this htpasswd file (You can use this htpasswd generator)
- Change Aria2 RPC Secret Token in this file
After any changes, rebuild the containers so these changes can take effect:
$ cd aria2-offline/
$ docker-compose down
$ docker-compose up -d --build
After changing the Aria2 RPC Secret Token, remember to update it in the AriaNg download manager too:
This project uses the terrific Aria2 frontend AriaNg as the download manager. It is written in pure html & javascript, so it runs in your browser and connects back to your server and talks with aria2 RPC at port 6800
.
When aria2 donwloads a file, it will create a temp file with the name original_file_name.aria2
. When download is finished, this temp file will disappear. Aria2-Offline uses this fact to detect whether the download is finished.
Sometimes the temp file is created several seconds later after the download is started. To handle this case, a file will only be detected as finished if it is older than 10 seconds.
Aria2-Offline caches the new name you give in a database. The actual file name will be changed automatically after the download is finished.
Files are stored at aria2-offline/web/downloads
.