Add additional location for /confirmdeletion

Adding location for /confirmdeletion for better compatibility with Authelia.
This commit is contained in:
mrskizzex 2021-07-25 15:32:56 +02:00 committed by GitHub
commit 4948bf5e6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
## Version 2021/05/18
## Version 2021/07/25
# make sure that your dns has a cname set for qbittorrent and that your qbittorrent container is not using a base url
server {
@ -109,4 +109,18 @@ server {
proxy_set_header Referer '';
proxy_set_header Host $upstream_app:$upstream_port;
}
location ~ (/qbittorrent)?/confirmdeletion {
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;
}
}