mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-20 21:33:45 -07:00
set the correct header to satisfy qbit csrf check
This commit is contained in:
parent
0548fd27ff
commit
539fd19f9e
2 changed files with 16 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
## Version 2022/09/08
|
||||
## Version 2022/10/25
|
||||
# make sure that your dns has a cname set for qbittorrent and that your qbittorrent container is not using a base url
|
||||
|
||||
server {
|
||||
|
@ -37,6 +37,7 @@ server {
|
|||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header Host $upstream_app:$upstream_port;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
|
||||
location ~ (/qbittorrent)?/api {
|
||||
|
@ -51,6 +52,7 @@ server {
|
|||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header Host $upstream_app:$upstream_port;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
|
||||
location ~ (/qbittorrent)?/command {
|
||||
|
@ -65,6 +67,7 @@ server {
|
|||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header Host $upstream_app:$upstream_port;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
|
||||
location ~ (/qbittorrent)?/query {
|
||||
|
@ -79,6 +82,7 @@ server {
|
|||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header Host $upstream_app:$upstream_port;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
|
||||
location ~ (/qbittorrent)?/login {
|
||||
|
@ -93,6 +97,7 @@ server {
|
|||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header Host $upstream_app:$upstream_port;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
|
||||
location ~ (/qbittorrent)?/sync {
|
||||
|
@ -107,6 +112,7 @@ server {
|
|||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header Host $upstream_app:$upstream_port;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
|
||||
location ~ (/qbittorrent)?/scripts {
|
||||
|
@ -121,5 +127,6 @@ server {
|
|||
|
||||
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