Some anti-crash fixes

This commit is contained in:
Pablo Ferreiro 2022-07-03 18:19:10 +02:00
parent bc3777d74c
commit d52dc8687f
No known key found for this signature in database
GPG key ID: 41FBCE65B779FA24
7 changed files with 17 additions and 15 deletions

15
setup/heroku/nginx.conf Normal file
View file

@ -0,0 +1,15 @@
location / {
# try to serve file directly, fallback to rewrite
try_files $uri @rewriteapp;
}
location @rewriteapp {
# rewrite all to index.php
rewrite ^(.*)$ /index.php/$1 last;
}
location ~ ^/index\.php(/|$) {
try_files @heroku-fcgi @heroku-fcgi;
# ensure that /index.php isn't accessible directly, but only through a rewrite
internal;
}