mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-05 20:41:32 -07:00
Add support for custom themes in qBittorrent
This commit is contained in:
parent
efcb9cd87e
commit
d4fced1198
2 changed files with 30 additions and 0 deletions
|
@ -136,4 +136,19 @@ server {
|
|||
proxy_set_header Host $upstream_app:$upstream_port;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
|
||||
location ~ (/qbittorrent)?/css {
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
set $upstream_app qbittorrent;
|
||||
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;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -123,3 +123,18 @@ location ^~ /qbittorrent/scripts {
|
|||
proxy_set_header Host $upstream_app:$upstream_port;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
|
||||
location ^~ /qbittorrent/css {
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
set $upstream_app qbittorrent;
|
||||
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;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue