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 e4908e3 commit 777fc1e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 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;

## 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;
## }
## 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 Down

0 comments on commit 777fc1e

Please sign in to comment.