This articles is published 665 days ago and last updated 505 days ago, some information may be out of date.
NPM (Nginx Proxy Manager) Reverse Proxy ARIA2's JSONRPC
aria2 is a lightweight multi-protocol & multi-source command-line download utility. It supports HTTP/HTTPS, FTP, SFTP, BitTorrent and Metalink.The SSL certificate used by the Aria2 server does not support port 6800, so NPM (Nginx Proxy Manager) needs to be used to provide both HTTP(s) and Aria2 JSONRPC services.
Edit NPM (Nginx Proxy Manager)
Proxy Host
>> Advanced
#ARIA2
location /jsonrpc {
proxy_pass http://10.2.2.3:6800/jsonrpc;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
#The following code supports WebSocket
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
Parameter | Description |
---|---|
location /jsonrpc | RPC address is //example.com/jsonrpc |
http://10.2.2.3:6800/jsonrpc | The full path of the host (10.2.2.3 is host IP address) |
Final Result:
You can now connect to ARIA2 RPC via "https" and "wss" (WebSocket Secure).
Is the proxy host using Docker? If so, can you share the "Details" tag? I'm trying to get it to work on my machine with the abcminiuser/docker-aria2-with-webui image, but it's not working. Thanks!
Anonymous 2023-04-19 10:26
Proxy Host reference: https://github.com/NginxProxyManager/nginx-proxy-manager
King Tam 2023-05-11 08:18
I utilize two Docker images, p3terx/aria2-pro and p3terx/ariang, both created by P3TERX, and combine them into a single docker-compose.yaml file.
For reference, visit the following link: https://github.com/P3TERX/Aria2-Pro-Docker.
King Tam 2023-05-11 08:13