-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Some apps like qbittorrent-nox and airdcpp needs the header being forwarded:
https://github.com/qbittorrent/qBittorrent/wiki/NGINX-Reverse-Proxy-for-Web-UI
https://github.com/airdcpp-web/airdcpp-webclient/wiki/nginx-proxy-configuration
But I cannot for my life figure out how to add the:
proxy_set_header Host 127.0.0.1:30000;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_cookie_path / "/; Secure";
and:
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
to the nginx proxy config.
Directly adding them to the Advanced section of proxy host does not work, as in the UI is still unable to connect to its app backend as some they have some sort of a header verification.
I looked at other issues opened and still could not figure out a way to forward these things, can you let me know what I need to do?
Apologize for incorrect terminology as I am an amateur.
EDIT:
I did insert them into the appropriate location block and restarted the container without changing the web UI, but it did not work for qbit. Also tried to use this:
add_header X-Served-By $host;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Scheme $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass https://$server:$port;
EDIT2:
I am brought to a page called Openresty for some reason.
Caused by having the:
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
In both the location block and server block.