Fix qBittorrent proxy configuration to ensure proper path handling and headers

This commit is contained in:
Nik Afiq 2026-01-12 14:22:02 +09:00
parent ce7dc52855
commit 81f7b74b1f

View File

@ -88,13 +88,17 @@ server {
location = /qbt { return 302 /qbt/; } location = /qbt { return 302 /qbt/; }
location ^~ /qbt/ { location ^~ /qbt/ {
proxy_pass http://qbt_upstream; proxy_pass http://qbt_upstream/;
include snippets/proxy-common.conf; include snippets/proxy-common.conf;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Prefix /qbt; proxy_set_header X-Forwarded-Prefix /qbt;
proxy_redirect off; proxy_cookie_path / /qbt/;
proxy_redirect / /qbt/;
} }
} }