Skip to content

Commit 440a10c

Browse files
authored
Merge pull request #580 from adepssimius/master
Add custom theme support for qBittorrent
2 parents 4a16b16 + be190d0 commit 440a10c

2 files changed

Lines changed: 32 additions & 2 deletions

File tree

qbittorrent.subdomain.conf.sample

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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;

qbittorrent.subfolder.conf.sample

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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+
6782
location ^~ /qbittorrent/query {
6883
include /config/nginx/proxy.conf;
6984
include /config/nginx/resolver.conf;

0 commit comments

Comments
 (0)