From 519bc06167f946abf4df480aaab29dfc6222a499 Mon Sep 17 00:00:00 2001 From: Adrian Hopek Date: Tue, 8 Mar 2022 12:09:41 +0100 Subject: [PATCH] test --- Procfile | 2 +- nginx.conf | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 nginx.conf diff --git a/Procfile b/Procfile index bd63c31..61c6039 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: vendor/bin/heroku-php-nginx public/ +web: vendor/bin/heroku-php-nginx -C nginx.conf public/ diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..b03455d --- /dev/null +++ b/nginx.conf @@ -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; +} \ No newline at end of file