Skip to content
Permalink
Browse files

force https for heroku

  • Loading branch information
aaronpk committed Jan 27, 2020
1 parent fb018d6 commit 1aeecae33ce37d6af431982ea5c0f3f35103985c
Showing with 4 additions and 0 deletions.
  1. +4 −0 nginx.conf
@@ -2,6 +2,10 @@ add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";

if ($http_x_forwarded_proto != "https") {
return 301 https://$host$request_uri;
}

index index.php;

charset utf-8;

0 comments on commit 1aeecae

Please sign in to comment.
You can’t perform that action at this time.