File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- ## Version 2023/05/31
1+ ## Version 2023/09/05
22# make sure that your qbittorrent container is named qbittorrent
33# make sure that your dns has a cname set for qbittorrent
44
@@ -77,6 +77,21 @@ server {
7777 proxy_set_header X-Forwarded-Host $host;
7878 }
7979
80+ location ~ (/qbittorrent)?/css {
81+ include /config/nginx/proxy.conf;
82+ include /config/nginx/resolver.conf;
83+ set $upstream_app qbittorrent;
84+ set $upstream_port 8080;
85+ set $upstream_proto http;
86+ proxy_pass $upstream_proto://$upstream_app:$upstream_port;
87+
88+ rewrite /qbittorrent(.*) $1 break;
89+
90+ proxy_set_header Referer '';
91+ proxy_set_header Host $upstream_app:$upstream_port;
92+ proxy_set_header X-Forwarded-Host $host;
93+ }
94+
8095 location ~ (/qbittorrent)?/query {
8196 include /config/nginx/proxy.conf;
8297 include /config/nginx/resolver.conf;
Original file line number Diff line number Diff line change 1- ## Version 2023/02 /05
1+ ## Version 2023/09 /05
22# make sure that your qbittorrent container is named qbittorrent
33# qbittorrent does not require a base url setting
44
@@ -64,6 +64,21 @@ location ^~ /qbittorrent/command {
6464 proxy_set_header X-Forwarded-Host $host;
6565}
6666
67+ location ^~ /qbittorrent/css {
68+ include /config/nginx/proxy.conf;
69+ include /config/nginx/resolver.conf;
70+ set $upstream_app qbittorrent;
71+ set $upstream_port 8080;
72+ set $upstream_proto http;
73+ proxy_pass $upstream_proto://$upstream_app:$upstream_port;
74+
75+ rewrite /qbittorrent(.*) $1 break;
76+
77+ proxy_set_header Referer '';
78+ proxy_set_header Host $upstream_app:$upstream_port;
79+ proxy_set_header X-Forwarded-Host $host;
80+ }
81+
6782location ^~ /qbittorrent/query {
6883 include /config/nginx/proxy.conf;
6984 include /config/nginx/resolver.conf;
You can’t perform that action at this time.
0 commit comments