mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-05 20:41:32 -07:00
use $upstream_port in proxy_set_header
$upstream_port is defined in the blocks and used for proxy_pass but not proxy_set_header
This commit is contained in:
parent
2bbf93c2f2
commit
036c759e9d
1 changed files with 6 additions and 6 deletions
|
@ -22,7 +22,7 @@ location ^~ /qbittorrent/ {
|
|||
rewrite /qbittorrent(.*) $1 break;
|
||||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header Host $upstream_app:8080;
|
||||
proxy_set_header Host $upstream_app:$upstream_port;
|
||||
}
|
||||
|
||||
location ^~ /qbittorrent/api {
|
||||
|
@ -36,7 +36,7 @@ location ^~ /qbittorrent/api {
|
|||
rewrite /qbittorrent(.*) $1 break;
|
||||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header Host $upstream_app:8080;
|
||||
proxy_set_header Host $upstream_app:$upstream_port;
|
||||
}
|
||||
|
||||
location ^~ /qbittorrent/command {
|
||||
|
@ -50,7 +50,7 @@ location ^~ /qbittorrent/command {
|
|||
rewrite /qbittorrent(.*) $1 break;
|
||||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header Host $upstream_app:8080;
|
||||
proxy_set_header Host $upstream_app:$upstream_port;
|
||||
}
|
||||
|
||||
location ^~ /qbittorrent/query {
|
||||
|
@ -64,7 +64,7 @@ location ^~ /qbittorrent/query {
|
|||
rewrite /qbittorrent(.*) $1 break;
|
||||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header Host $upstream_app:8080;
|
||||
proxy_set_header Host $upstream_app:$upstream_port;
|
||||
}
|
||||
|
||||
location ^~ /qbittorrent/login {
|
||||
|
@ -78,7 +78,7 @@ location ^~ /qbittorrent/login {
|
|||
rewrite /qbittorrent(.*) $1 break;
|
||||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header Host $upstream_app:8080;
|
||||
proxy_set_header Host $upstream_app:$upstream_port;
|
||||
}
|
||||
|
||||
location ^~ /qbittorrent/sync {
|
||||
|
@ -92,5 +92,5 @@ location ^~ /qbittorrent/sync {
|
|||
rewrite /qbittorrent(.*) $1 break;
|
||||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header Host $upstream_app:8080;
|
||||
proxy_set_header Host $upstream_app:$upstream_port;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue