Skip to content

Commit

Permalink
Fix http-common.conf (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
KireevDmitry committed Aug 28, 2023
1 parent ed12685 commit 7aa39a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions config/nginx/includes/http-common.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ map $http_host $this_host {
default $http_host;
}

map $http_x_forwarded_proto $the_scheme {
default $http_x_forwarded_proto;
"" $scheme;
map $http_cloudfront_forwarded_proto:$http_x_forwarded_proto $the_scheme {
default $scheme;
"~^https?:.*" $http_cloudfront_forwarded_proto;
"~^:https?$" $http_x_forwarded_proto;
}

map $http_x_forwarded_host $the_host {
Expand Down

0 comments on commit 7aa39a8

Please sign in to comment.