mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Various Heroku related fixes.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
5
app.json
5
app.json
@@ -39,7 +39,10 @@
|
|||||||
],
|
],
|
||||||
"addons": [
|
"addons": [
|
||||||
{
|
{
|
||||||
"plan": "heroku-postgresql"
|
"plan": "heroku-postgresql",
|
||||||
|
"options": {
|
||||||
|
"version": "9.5"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
Reference in New Issue
Block a user