-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Cannot connect to Aria2 RPC when working behind Nginx #733
Comments
Maybe these can point you in the right direction, would be interested to know if it works for you: |
you can read this article https://developer.chrome.com/blog/private-network-access-update/ |
Have you tried setting the RPC port to 443 inside AriaNg? It works for me with the following nginx config (using nginx-proxy-manager):
|
Hi, I've aria2 running on the same VM that hosts aria2ng behind nginx. My nginx config is similar to this :
When configure RPC alias inside the Aria2NG settings, you need to configure in this manner the url :
otherwise the proxy mode of nginx don't works correctly to redirect the request to the port on the server. I hope that this resolve your problem. |
Running Context
Aria2 RPC Server is running on 192.168.1.99:6800
AriaNg client is running on 192.168.1.254:6880
They work fine together.
However when I tried to put AriaNg behind Nginx reverse proxy with the following configuration:
Symptom
When accessing via "https://aria.mydomain.com" in the browser, the AriaNg client is still accessible but it can't connect to the RPC server via 192.168.1.99:6800 anymore.
Here are the problems beyond my reach
On the RPC Server settings, "http" and "websocket" can't be used and options were confined to "https" and "wss". However, I tried to use the certificates for "aria.mydomain.com" issued by LetsEncrypt with Aria2 RPC Server but it doesn't accept them.
There are many jsonrpc errors in the Network tab of Chrome DevTools. I have tried to use
proxy_set_header
to change the Origin and Referer headers as shown in the configuration but they remain unchanged as "https://aria.mydomain.com"The text was updated successfully, but these errors were encountered: