ericvlog / note

6 stars 1 forks source link

NPM (Nginx Proxy Manager) Reverse Proxy ARIA2's JSONRPC - King Zone #59

Open ericvlog opened 5 months ago

ericvlog commented 5 months ago

This articles is published 426 days ago and last updated 266 days ago, some information may be out of date.

npm-aria2.jpg

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)[](#Edit NPM (Nginx Proxy Manager) "Paragraph Link")

Proxy Host >> Advanced

2023-01-26_153027.png

#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:[](#Final Result: "Paragraph Link")

2023-01-26_153126.png

2023-01-26_153139.png

You can now connect to ARIA2 RPC via "https" and "wss" (WebSocket Secure).


Reference: