Various Heroku related fixes.

This commit is contained in:
James Cole
2017-11-29 19:15:44 +01:00
parent 9ae878724a
commit 79517fc6e0
3 changed files with 10 additions and 2 deletions

View File

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

View File

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

View File

@@ -1,7 +1,12 @@
# prevent HTTPoxy vulnerability
fastcgi_param HTTP_PROXY "";
location / { location / {
# try to serve file directly, fallback to rewrite
try_files $uri @rewriteapp; try_files $uri @rewriteapp;
} }
location @rewriteapp { location @rewriteapp {
# rewrite all to index.php
rewrite ^(.*)$ /index.php$1 last; rewrite ^(.*)$ /index.php$1 last;
} }