52ll.org
52ll.org

Aria2 + AriaNG +Https

安装ARIA2

来源:https://doubibackup.com/zuigoj__.html

wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/aria2.sh && chmod +x aria2.sh && bash aria2.sh

安装AriaNG

来源:https://doubibackup.com/q7gcd25g-4.html

Ver=$(wget --no-check-certificate -qO- https://api.github.com/repos/mayswind/AriaNg/releases/latest | grep -o '"tag_name": ".*"' | sed 's/"//g;s/tag_name: //g') && echo ${Ver}
wget -N --no-check-certificate "https://github.com/mayswind/AriaNg/releases/download/${Ver}/AriaNg-${Ver}.zip" && unzip AriaNg-${Ver}.zip && rm -rf AriaNg-${Ver}.zip

配置HTTPS

编辑/root/.aria2/aria2.conf,配置

rpc-secure=true
# 在 RPC 服务中启用 SSL/TLS 加密时的证书文件(.pem/.crt)
rpc-certificate=/usr/local/nginx/conf/ssl/aria2.xxx.me/fullchain.cer
# 在 RPC 服务中启用 SSL/TLS 加密时的私钥文件(.key)
rpc-private-key=/usr/local/nginx/conf/ssl/aria2.xxx.me/aria2.xxx.me.key

配置NGINX

server
{
listen 80;
server_name aria2.xxx.me ;
return 301 https://$server_name$request_uri;
}

来源

https://github.com/mayswind/AriaNg/releases
https://github.com/mayswind/AriaNg/issues/62
https://github.com/q3aql/aria2-static-builds

发表回复

textsms
account_circle
email

52ll.org

Aria2 + AriaNG +Https
安装ARIA2 来源:https://doubibackup.com/zuigoj__.html wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/aria2.sh && ch…
扫描二维码继续阅读
2020-03-18