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

无法连接启用了https的Aria2 #538

Closed
ahdiua opened this issue Jun 21, 2020 · 3 comments
Closed

无法连接启用了https的Aria2 #538

ahdiua opened this issue Jun 21, 2020 · 3 comments

Comments

@ahdiua
Copy link

ahdiua commented Jun 21, 2020

如题。
Aria2没有启动https时,在AriaNG能稳定连上,启用https后,原本配置不变,将协议改为https,就无法连上了,all in one版本也没有日志,无法排查

@snylonue
Copy link

snylonue commented Jul 1, 2020

#304

@mayswind
Copy link
Owner

mayswind commented Jul 2, 2020

AriaNg没有日志说明在浏览器这层就被拦了,看浏览器控制台和浏览器网络请求

@luzy99
Copy link

luzy99 commented Jul 5, 2020

我是用nginx反代的,aria2c配置不用改,nginx配置里加上这段

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

rpc地址那里填https://域名:443/jsonrpc就行了
如果https访问不了先清一下cookie

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

4 participants