nginx: supported cloudfront-forwarded-proto header

This commit is contained in:
Alexey Bannov 2023-04-28 16:13:50 +03:00
parent 896aa6c5f9
commit 6ac74189bd

View File

@ -3,9 +3,14 @@ map $http_host $this_host {
default $http_host;
}
map $http_cloudfront_forwarded_proto $cloudfront_forwarded_proto {
default $http_cloudfront_forwarded_proto;
"" $scheme;
}
map $http_x_forwarded_proto $proxy_x_forwarded_proto {
default $http_x_forwarded_proto;
"" $scheme;
"" $cloudfront_forwarded_proto;
}
map $http_x_forwarded_port $proxy_x_forwarded_port {