Skip to content

Commit

Permalink
Update nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
vpicone authored and natashadecoste committed May 19, 2021
1 parent f8b41cb commit e4908e3
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ http {
server_name localhost;
root public;

## Force https
set $updated_host $host;
if ($http_x_forwarded_host != "") {
set $updated_host $http_x_forwarded_host;
}
if ($http_x_forwarded_proto != "https") {
return 301 https://$updated_host$request_uri;
}
## temporarily dont force https
## set $updated_host $host;
## if ($http_x_forwarded_host != "") {
## set $updated_host $http_x_forwarded_host;
## }
## if ($http_x_forwarded_proto != "https") {
## return 301 https://$updated_host$request_uri;
## }

index index.html;
autoindex off;
Expand All @@ -56,4 +56,4 @@ http {

include conf.d/*.conf;
}
}
}

0 comments on commit e4908e3

Please sign in to comment.