nginx: supported cloudfront-forwarded-proto header
This commit is contained in:
parent
896aa6c5f9
commit
6ac74189bd
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user