Merge 3bb38c7ba3
into c38868b018
This commit is contained in:
commit
73eb1c35db
1 changed files with 6 additions and 1 deletions
|
@ -108,6 +108,11 @@ http {
|
||||||
'' $scheme;
|
'' $scheme;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
map $http_x_forwarded_port $pass_server_port {
|
||||||
|
default $http_x_forwarded_port;
|
||||||
|
'' $server_port;
|
||||||
|
}
|
||||||
|
|
||||||
# Map a response error watching the header Content-Type
|
# Map a response error watching the header Content-Type
|
||||||
map $http_accept $httpAccept {
|
map $http_accept $httpAccept {
|
||||||
default html;
|
default html;
|
||||||
|
@ -197,7 +202,7 @@ http {
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
# map port 442 to 443 for header X-Forwarded-Port
|
# map port 442 to 443 for header X-Forwarded-Port
|
||||||
map $pass_port $server_port {
|
map $pass_port $pass_server_port {
|
||||||
442 443;
|
442 443;
|
||||||
default 80;
|
default 80;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue