mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-06 04:51:33 -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
41a5ae129b
commit
2bbf93c2f2
1 changed files with 6 additions and 6 deletions
|
@ -30,7 +30,7 @@ server {
|
|||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
proxy_set_header Referer '';
|
||||
proxy_set_header Host $upstream_app:8080;
|
||||
proxy_set_header Host $upstream_app:$upstream_port;
|
||||
}
|
||||
|
||||
location ~ (/qbittorrent)?/api {
|
||||
|
@ -44,7 +44,7 @@ server {
|
|||
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 {
|
||||
|
@ -58,7 +58,7 @@ server {
|
|||
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 {
|
||||
|
@ -72,7 +72,7 @@ server {
|
|||
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 {
|
||||
|
@ -86,7 +86,7 @@ server {
|
|||
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 {
|
||||
|
@ -100,6 +100,6 @@ server {
|
|||
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