Various Heroku related fixes.

This commit is contained in:
James Cole 2017-11-29 19:15:44 +01:00
parent 9ae878724a
commit 79517fc6e0
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
3 changed files with 10 additions and 2 deletions

View File

@ -5,7 +5,7 @@ APP_KEY=7ahyYVPVsmxjdhsweWCauGeJfwc92NP2
APP_LOG=errorlog
APP_LOG_LEVEL=debug
APP_URL=http://localhost
TRUSTED_PROXIES=
TRUSTED_PROXIES=*
DB_CONNECTION=pgsql

View File

@ -39,7 +39,10 @@
],
"addons": [
{
"plan": "heroku-postgresql"
"plan": "heroku-postgresql",
"options": {
"version": "9.5"
}
}
],
"scripts": {

View File

@ -1,7 +1,12 @@
# prevent HTTPoxy vulnerability
fastcgi_param HTTP_PROXY "";
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;
}