Skip to content

Commit

Permalink
Update nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
vpicone authored Apr 16, 2020
1 parent 48719cb commit 3b4990d
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

1 comment on commit 3b4990d

@vercel
Copy link

@vercel vercel bot commented on 3b4990d Apr 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.