Skip to content

Firefly III: a personal finances manager

Configure nginx [skip ci]

James Colefa818e092421
diff --git a/Procfile b/Procfile
index 7f25f10eb9..3191e014de 100644
--- a/Procfile
+++ b/Procfile
@@ -1 +1 @@
-web: vendor/bin/heroku-php-nginx public/ -C nginx_app.conf
+web: vendor/bin/heroku-php-nginx -C nginx_app.conf public/
diff --git a/nginx_app.conf b/nginx_app.conf
index da8b8eea52..b0a4d0ee32 100644
--- a/nginx_app.conf
+++ b/nginx_app.conf
@@ -1,7 +1,7 @@
location / {
- try_files $uri $uri/ /index.php?$query_string;
- autoindex on;
- sendfile off;
- }
-client_max_body_size 300M;
-index index.php index.html index.htm;
\ No newline at end of file
+ try_files $uri @rewriteapp;
+}
+
+location @rewriteapp {
+ rewrite ^(.*)$ /index.php$1 last;
+}
\ No newline at end of file