Convert Figma logo to code with AI

wahyd4 logoaria2-ariang-docker

The Docker image for Aria2 + AriaNg + File Browser + Rclone

1,045
235
1,045
3

Top Related Projects

The aim for this project is to create the worlds best and hottest interface to interact with aria2. Very simple to use, just download and open index.html in any web browser.

Quick Overview

The wahyd4/aria2-ariang-docker repository provides a Docker container that combines the Aria2 download manager and the AriaNg web interface, allowing users to manage their downloads through a web-based interface.

Pros

  • All-in-one Solution: The container provides both Aria2 and AriaNg in a single package, making it easy to set up and use.
  • Cross-platform Compatibility: The Docker container can be run on various platforms, including Windows, macOS, and Linux.
  • Easy Configuration: The project includes a comprehensive README file with detailed instructions for configuring the container.
  • Active Development: The project is actively maintained, with regular updates and bug fixes.

Cons

  • Dependency on Docker: Users must have Docker installed and configured on their system to use this project.
  • Limited Customization: While the project provides some configuration options, users may have limited control over the underlying Aria2 and AriaNg components.
  • Potential Performance Impact: Running multiple services in a single container may impact the overall performance, especially on systems with limited resources.
  • Learning Curve: Users who are not familiar with Docker may need to spend some time learning how to use and manage the container.

Getting Started

To get started with the wahyd4/aria2-ariang-docker project, follow these steps:

  1. Install Docker on your system if you haven't already.
  2. Pull the Docker image from the repository:
    docker pull wahyd4/aria2-ariang
    
  3. Create a directory to store your Aria2 configuration and download files:
    mkdir -p /path/to/aria2/config /path/to/aria2/downloads
    
  4. Run the Docker container with the following command:
    docker run -d \
      --name aria2-ariang \
      -p 6800:6800 \
      -p 8080:8080 \
      -v /path/to/aria2/config:/config \
      -v /path/to/aria2/downloads:/downloads \
      wahyd4/aria2-ariang
    
  5. Open your web browser and navigate to http://localhost:8080 to access the AriaNg web interface.
  6. Configure Aria2 settings and start managing your downloads through the web interface.

Competitor Comparisons

The aim for this project is to create the worlds best and hottest interface to interact with aria2. Very simple to use, just download and open index.html in any web browser.

Pros of WebUI-aria2

  • Intuitive User Interface: WebUI-aria2 offers a clean and user-friendly web interface, making it easier for users to manage their downloads.
  • Cross-platform Compatibility: The web-based nature of WebUI-aria2 allows it to be accessed from any device with a web browser, providing a consistent experience across different platforms.
  • Active Development: The WebUI-aria2 project has an active community and is regularly updated, ensuring new features and bug fixes are introduced.

Cons of WebUI-aria2

  • Limited Customization: Compared to aria2-ariang-docker, WebUI-aria2 may have fewer options for customization and configuration, limiting the user's ability to tailor the application to their specific needs.
  • Dependency on External Services: WebUI-aria2 relies on the aria2 backend, which means users need to set up and manage the aria2 service separately.
  • Potential Security Concerns: As a web-based application, WebUI-aria2 may be more susceptible to security vulnerabilities, requiring users to keep the application and its dependencies up-to-date.

Code Comparison

Here's a brief code comparison between the two projects:

aria2-ariang-docker (Dockerfile):

FROM alpine:3.14

RUN apk add --no-cache aria2 \
    && mkdir -p /config /downloads

COPY aria2.conf /config/aria2.conf
COPY aria2.session /config/aria2.session
COPY ariang.conf /config/ariang.conf

VOLUME ["/config", "/downloads"]

EXPOSE 6800 6880

CMD ["aria2c", "--conf-path=/config/aria2.conf"]

WebUI-aria2 (app.js):

const express = require('express');
const app = express();
const path = require('path');
const aria2 = require('./lib/aria2');

app.use(express.static(path.join(__dirname, 'public')));

app.get('/api/status', (req, res) => {
  aria2.getGlobalStat((err, data) => {
    if (err) {
      return res.status(500).send(err);
    }
    res.json(data);
  });
});

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

Aria2 + AriaNg + Filebrowser

English | 简体中文

Docker Pulls Github Build

Page Views Count

If you like this project, please consider sponsoring me / 如果喜欢本项目,请考虑打赏,谢谢!

buy me a drink

One Docker image for file downloading, managing, sharing, as well as video playing and evening cloud storage synchronization.

Furthermore, it's pretty small and ARM CPU compatible which means you can also run it on Raspberry Pi🍓.

Last but not least, Auto HTTPS can't be more easy!

AriaNG Screenshot

File Browser File Browser

Features

  • Aria2 (SSL support)
  • AriaNg
  • Rclone
  • File Browser: Files mangement and videos playing
  • Auto HTTPS (Let's Encrypt)
  • Bind non root user into container, so non root user can also manage downloaded files.
  • Basic Auth
  • Support ARM CPUs as well, all supported CPU platforms can be found here
  • Cloud Storage platforms synchronization
  • Auto uploading files to 3rd party Cloud storage providers via Rclone after files been downloaded.

Recommended versions

  • wahyd4/aria2-ui:latest

Docker will pick the the proper ARCH for you. e.g. arm64v8 or x86_64

How to run

Quick run

  docker run -d --name aria2-ui -p 8000:80 wahyd4/aria2-ui

Full features run

  docker run -d --name ariang \
  -p 80:80 \
  -p 443:443 \
  -e PUID=1000 \
  -e PGID=1000 \
  -e ENABLE_AUTH=true \
  -e RPC_SECRET=Hello \
  -e DOMAIN=https://example.com \
  -e ARIA2_SSL=false \
  -e ARIA2_USER=user \
  -e ARIA2_PWD=password \
  -e ARIA2_EXTERNAL_PORT=443 \
  -e CADDY_LOG_LEVEL=ERROR \
  -v /yourdata:/data \
  -v /app/.cache:/app/.cache \
  -v /app/a.db:/app/filebrowser.db \
  -v /to_yoursslkeys/:/app/conf/key \
  -v <conf files folder>:/app/conf \
  wahyd4/aria2-ui

Run with docker-compose

If you would like to get rid of those annoying command line commands, then just put the following sample content into docker-compose.yaml

version: "3.5"
services:
  aria2-ui:
    restart: unless-stopped
    image: wahyd4/aria2-ui:latest
    environment:
      - ENABLE_AUTH=true
      - ARIA2_USER=hello
      - ARIA2_PWD=world
      - DOMAIN=http://toozhao.com
    ports:
      - "80:80"
    volumes:
      - ./data:/data

Then simply run docker-compose up -d, that's it!

Supported Environment Variables

ENVDescription
ENABLE_AUTHWhether to enable Basic auth
ENABLE_RCLONEWhether to disable Rclone, if you running this container offline or do not have stable connection to Github, please set to false
ARIA2_USERBasic Auth username, Rclone GUI uses it as well.
ARIA2_PWDBasic Auth password, Rclone GUI uses it as well.
ARIA2_EXTERNAL_PORTThe Aria2 port which exposed to public to access to
PUIDBind Linux UID into container which means you can use non root user to manage downloaded files, default UID is 1000
PGIDBind Linux GID into container, default GID is 1000
RPC_SECRETThe Aria2 RPC secret token
DOMAINThe domain you'd like to bind, when domain is a https:// thing, then auto TLS feature will be enabled
RCLONE_CONFIG_BASE64Inject and config Rclone through base64 string, which is the only way to use Rclone on Heroku. Please use cat /app/conf/rclone.conf | base64 or any base64 online tools such as this to encode your rclone.conf as bse64 string. Note, you need to set ENABLE_RCLONE to true as well.
ENABLE_APP_CHECKERBy default it's set to true to check if any new docker image version release on daily basis, which can help you get notification when new features released as well as some security vulnerabilities get fixed. You can set it to false to disable this feature. Note: you still need to manually pull the new image version and re run the docker container to complete upgrading.
CADDY_LOG_LEVELFor specifying the log level of Caddy, set it to WARN orERROR to reduce logs. Default: INFO
RCLONE_AUTO_UPLOAD_PROVIDERThe Rclone remote storage provider name, which can be found under Rclone -> Configs, default "", which means auto upload is disabled. When the value is not empty, then the files will be attempted to be uploaded.
RCLONE_AUTO_UPLOAD_REMOTE_PATHThe file folder in remote cloud storage provider, default /downloads
RCLONE_AUTO_UPLOAD_FILE_MIN_SIZESet the minimum file size of auto uploader, files smaller than it won't be uploaded, default 1K
RCLONE_AUTO_UPLOAD_FILE_MAX_SIZESet the limit of the Max file can be uploaded to 3rd party storage provider, default 100G.
FIX_DATA_VOLUME_PERMISSIONSDefault value is false. When set to true, the container will run chown -R command against /data folder and PUID and PGID you set. Please set it to true when container complains you don't have enough permissions to manage the files and folders you mounted.

Supported Volumes

Mountable folderDescription
/dataThe folder contains all the files you download.
/app/conf/keyThe folder which stores Aria2 SSL certificate and key
/app/confThe Aria2 configuration and file session folder. 🚨Please make sure you have aria2.conf and aria2.session file exist on your host, when yout mount /app/conf. For the first time aria2.session just need to be a empty file can be appended. You can also user the templates for these two file in the conf folder of this project. Please put your rclone.conf in this folder as well if you'd mount it to Rclone. So all the config files supported in this folder are: aria2.conf, aria2.session, rclone.conf. 🚨Warning🚨: if you don't mount /app/conf, whenever the container restarts, you'll lose your downloading progress.
/app/conf/aria2.confSee description above👆🏼
/app/conf/aria2.sessionSee description above👆🏼
/app/conf/rclone.confSee description above👆🏼
/app/conf/auto-upload.shThe bash script to be used for uploading downloaded files to remote storage provider via Rclone, mount your own script if you want to have custom logic.
/app/filebrowser.dbFile Browser settings database, make sure you make a empty file first on your host.
/app/.cacheThe folder for storing rclone caches and aria2 DHT files

Auto HTTPS enabling

Make sure you have added proper A record point to the host you running to your domain DNS record list, then just add e option to bind the https domain when you run the image

docker run -d --name aria2-ui -p 80:80 -p 443:443 -e DOMAIN=https://toozhao.com wahyd4/aria2-ui

Download Automation 🤖

Download file through iPhone/Mac Shortcuts app.

First Download Shortcut, then follow the promots to setup aria2-ui URL and RPC_SECRET. Then you are all ready to go, just to run the shortcut and provide the file URL which you want to download or the magnet/torrent file URL.

Download file through cURL

curl http://<ip>:<port>/jsonrpc -d "{\"jsonrcp\":\"2.0\",\"id\":\"someID\",\"method\":\"aria2.addUri\",\"params\":[\"token:someToken\",[\"http://some_file_url\"],{\"dir\":\"/data/downloads\"}]}"

Build the image by yourself

 docker buildx build --platform linux/arm/v7,linux/arm64,linux/amd64 -t aria2-ui .

Docker Hub

https://hub.docker.com/r/wahyd4/aria2-ui/

Running it on Kubernetes (My favorite)

First of all, I have to say running this docker image on Kubernetes is more challenging and requires more knowledges than running it in raw Docker, but which is more powerful. I couldn't tell you how to run it in Kubernetes step by step, but once you have a running Kubernetes cluster(You can install Kubernetes via minikube, Docker desktop app, kubeadm and many other tools.), then you can modify the k8s-manifest.yaml to satisfy all your requirements. Such as:

  • NFS PV provider(Use your NAS as storage)
  • Ingress access, Oauth login, more access controls via Nginx etc.
  • VPN tunnel (Secure your traffic)
  • Sidecars and so on.

Running it with Docker compose

Please refer https://github.com/wahyd4/aria2-ariang-x-docker-compose

FAQ

  1. When you running the docker image with non 80 port or you have HTTPS enabled, you will meet the error says Aria2 Status Disconnected, then you will need to set ARIA2_EXTERNAL_PORT and recreate your container.
  2. If there is no speed at all when you downloading a BitTorrent file, please try to use a popular torrent file first to help the application to cache DHT file. Then the speed should get fast and fast, as well as downloading other links.
  3. If you see any errors related to setcap which probably means the Linux you are running doesn't support running this application with non-root user. So please specify the PUID and PGID to 0 explicitly to use root user to run it.
  4. How can I get Rclone authenticated? Due to Rclone is running in this docker image only as a component rather than an application, you can only interact with it via /rclone endpoint, and no other ports. So the web browser authentication mechanism doesn't work here. Please configure Rclone through command line within the container. You can follow the official doc Configuring rclone on a remote / headless machine or this issue
  5. Why the app stopped working when I have - v /<some-folder>:/app/conf mounted. It happens when you mount the entire /app/conf folder but you don't have any files under that folder on your host. To fix this issue, please simply copy all files under conf folder to your local folder that you mount to /app/conf and then rerun the container.