Merge pull request #481 from stevennguyen/qbittorrent-config-fix

qBittorrent config fixes
This commit is contained in:
Eric Nemchik 2022-10-04 21:12:47 -05:00 committed by GitHub
commit e1ca3b2c16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 0 deletions

View file

@ -108,4 +108,18 @@ server {
proxy_set_header Referer '';
proxy_set_header Host $upstream_app:$upstream_port;
}
location ~ (/qbittorrent)?/scripts {
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;
}
}

View file

@ -98,3 +98,17 @@ location ^~ /qbittorrent/sync {
proxy_set_header Referer '';
proxy_set_header Host $upstream_app:$upstream_port;
}
location ^~ /qbittorrent/scripts {
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;
}