Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置Aria2使用HTTPS链接 #304

Closed
ooiuv opened this issue Oct 30, 2018 · 3 comments
Closed

配置Aria2使用HTTPS链接 #304

ooiuv opened this issue Oct 30, 2018 · 3 comments

Comments

@ooiuv
Copy link

ooiuv commented Oct 30, 2018

问题描述:aria2使用http链接正常,但是使用https链接失败

在aria2.conf中添加

rpc-secure=true  
rpc-certificate=/path/to/cer  
rpc-private-key=/path/to/key

然后修改地址为https://yoursite.com:6800/jsonrpc

Originally posted by @DkWyatt in #62 (comment)

@ooiuv ooiuv changed the title @mayswind 找到解决方法了 有着一种配置 就可以解决问题了!谢谢! Aria2使用HTTPS链接 Oct 30, 2018
@ooiuv ooiuv changed the title Aria2使用HTTPS链接 配置Aria2使用HTTPS链接 Oct 30, 2018
@mayswind
Copy link
Owner

已经解决了?

@ooiuv
Copy link
Author

ooiuv commented Oct 30, 2018

已经解决了?

嗯,我把地址换成自己网站的证书和秘钥,就可以使用HTTPS了

比如我当前网站是a.com

rpc-secure=true
rpc-certificate=a.com.cer
rpc-private-key=a.com.key

@sillydanny
Copy link

如果用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; }

參考大佬: 取巧办法使用HTTPS链接Aria2

我是用traefik> nginx>aria2 (在docker)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants