mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-22 23:23:41 -06:00
Various Heroku related fixes.
This commit is contained in:
parent
9ae878724a
commit
79517fc6e0
@ -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
|
||||
|
||||
|
5
app.json
5
app.json
@ -39,7 +39,10 @@
|
||||
],
|
||||
"addons": [
|
||||
{
|
||||
"plan": "heroku-postgresql"
|
||||
"plan": "heroku-postgresql",
|
||||
"options": {
|
||||
"version": "9.5"
|
||||
}
|
||||
}
|
||||
],
|
||||
"scripts": {
|
||||
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user