Closed rg9400 closed 3 years ago
I'm unable to replicate this. Tested on lsio qbittorrent latest.
location /qbt/ {
proxy_pass http://192.168.1.34:8080/;
proxy_set_header X-Forwarded-Host $server_name:$server_port;
proxy_hide_header Referer;
proxy_hide_header Origin;
proxy_set_header Referer '';
proxy_set_header Origin '';
add_header X-Frame-Options "SAMEORIGIN";
set $app qbittorrent;
include /config/nginx/theme-park.conf;
proxy_hide_header "x-webkit-csp";
proxy_hide_header "content-security-policy";
}
And their proxy conf sample.
## Version 2020/12/09
# qbittorrent does not require a base url setting
location /qbittorrent {
return 301 $scheme://$host/qbittorrent/;
}
location ^~ /qbittorrent/ {
set $app qbittorrent;
include /config/nginx/theme-park.conf;
proxy_hide_header "x-webkit-csp";
proxy_hide_header "content-security-policy";
include /config/nginx/proxy.conf;
#resolver 127.0.0.11 valid=30s;
set $upstream_app 192.168.1.34;
set $upstream_port 8080;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
rewrite /qbittorrent(.*) $1 break;
proxy_set_header Referer '';
proxy_set_header Host $upstream_app:$upstream_port;
}
location ^~ /qbittorrent/api {
include /config/nginx/proxy.conf;
#resolver 127.0.0.11 valid=30s;
set $upstream_app 192.168.1.34;
set $upstream_port 8080;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
rewrite /qbittorrent(.*) $1 break;
proxy_set_header Referer '';
proxy_set_header Host $upstream_app:$upstream_port;
}
location ^~ /qbittorrent/command {
include /config/nginx/proxy.conf;
#resolver 127.0.0.11 valid=30s;
set $upstream_app 192.168.1.34;
set $upstream_port 8080;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
rewrite /qbittorrent(.*) $1 break;
proxy_set_header Referer '';
proxy_set_header Host $upstream_app:$upstream_port;
}
location ^~ /qbittorrent/query {
include /config/nginx/proxy.conf;
#resolver 127.0.0.11 valid=30s;
set $upstream_app 192.168.1.34;
set $upstream_port 8080;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
rewrite /qbittorrent(.*) $1 break;
proxy_set_header Referer '';
proxy_set_header Host $upstream_app:$upstream_port;
}
location ^~ /qbittorrent/login {
include /config/nginx/proxy.conf;
#resolver 127.0.0.11 valid=30s;
set $upstream_app 192.168.1.34;
set $upstream_port 8080;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
rewrite /qbittorrent(.*) $1 break;
proxy_set_header Referer '';
proxy_set_header Host $upstream_app:$upstream_port;
}
location ^~ /qbittorrent/sync {
include /config/nginx/proxy.conf;
#resolver 127.0.0.11 valid=30s;
set $upstream_app 192.168.1.34;
set $upstream_port 8080;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
rewrite /qbittorrent(.*) $1 break;
proxy_set_header Referer '';
proxy_set_header Host $upstream_app:$upstream_port;
}
@gilbN what browser are you using? Did you click the RSS tab (I don't see that in your screenshot)? Did the RSS tab switch to something for you?
@rcdailey I'm using chrome.
Tested with FF
I've also tested using the Binhex QbittorrentVPN container, with and without VPN activated. Still works. Tested your @rg9400 nginx conf.
There's an issue somewhere, I don't know where it is. I think this is the right place to try to find out the problem. I also have the same problem, so between 2 people we need to find out what is broken.
There's an issue somewhere, I don't know where it is. I think this is the right place to try to find out the problem. I also have the same problem, so between 2 people we need to find out what is broken.
Can you try a completely new qbit config?
I use deluge, so I'm testing on a fresh install with nothing setup.
This is resolved by the answer in https://github.com/gilbN/theme.park/issues/132, quoted below
using sub_filter to replace
<noscript>
tag instead of the</head>
tag fixed the issue for me. basically move the tag to group with other css files before javascript script tags.
Inexplicably, the subfilter method to inject the qBit theme is now breaking the reverse proxy. If I comment it out, the proxy works perfectly fine. This is a new issue as the below errors never occurred previously, and I was able to access the relevant tabs + functionality. It seems an update created this incompatibility
qbit nginx RP
themepark.conf with $tptheme set to organizr-dark
I comment out the line
include /config/nginx/themes/themepark.conf;
to get it working again.There are a bunch of errors. Some that impact functionality are the inability to navigate to the RSS tab. All of these disappear when removing the above line.