Update some code for Heroku.

This commit is contained in:
James Cole
2018-08-01 07:24:19 +02:00
parent 194073e49a
commit e3e8336602
3 changed files with 8 additions and 2 deletions

View File

@@ -2,6 +2,9 @@
fastcgi_param HTTP_PROXY "";
location / {
if ($http_x_forwarded_proto != "https") {
return 301 https://$host$request_uri;
}
# try to serve file directly, fallback to rewrite
try_files $uri @rewriteapp;
}