This commit is contained in:
Adrian Hopek 2022-03-08 12:09:41 +01:00
parent 39f8a748bd
commit 519bc06167
2 changed files with 11 additions and 1 deletions

View File

@ -1 +1 @@
web: vendor/bin/heroku-php-nginx public/
web: vendor/bin/heroku-php-nginx -C nginx.conf public/

10
nginx.conf Normal file
View File

@ -0,0 +1,10 @@
if ($http_x_forwarded_proto != 'https') {
rewrite ^ https://$host$request_uri? permanent;
}
location / {
try_files $uri @rewriteapp;
}
location @rewriteapp {
rewrite ^(.*)$ /index.php$1 last;
}