Skip to content

Commit

Permalink
Allow X-Forwarded-Proto to set the HTTPS flag
Browse files Browse the repository at this point in the history
  • Loading branch information
TrafeX committed Oct 2, 2018
1 parent 09b080e commit 6d980b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ http {
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;

# Forward the cloudfront scheme from upstream
map $http_cloudfront_forwarded_proto $forwarded_scheme {
map "$http_cloudfront_forwarded_proto$http_x_forwarded_proto" $forwarded_scheme {
default off;
https on;
"~*(https)" on;
}

server {
Expand Down

0 comments on commit 6d980b3

Please sign in to comment.