Aria2各种配置

1.安装aria2

https://github.com/P3TERX/aria2.sh

2.Web面板

https://github.com/mayswind/AriaNg

3.开启Https
正常方法是在aria2的配置文件里面设置rpc-secure,但是感觉申请证书麻烦,就通过反向代理的方式使走网站的https

nginx配置文件如下

location ^~ /jsonrpc {
    proxy_http_version 1.1;
    add_header Front-End-Https on;
    proxy_set_header Connection "";
    proxy_set_header Host $http_host;
    proxy_set_header X-NginX-Proxy true;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_pass http://127.0.0.1:6800/jsonrpc;
    proxy_pass_header X-Transmission-Session-Id;
}

然后在AriaNg中填写地址为

https://ip:443/jsonrpc

赞 (0)

评论区

发表评论

暂无评论,要不来一发?

回到顶部