Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Config from the right place?
James Colea97d46506b7c
diff --git a/app/Console/Commands/Correction/CorrectsUnevenAmount.php b/app/Console/Commands/Correction/CorrectsUnevenAmount.phpindex 3e575ecac6..cf9cc2bd8c 100644--- a/app/Console/Commands/Correction/CorrectsUnevenAmount.php+++ b/app/Console/Commands/Correction/CorrectsUnevenAmount.php@@ -369,7 +369,7 @@ class CorrectsUnevenAmount extends Commandcontinue;}if (!$this->isBetweenAssetAndLiability($journal)) {- Log::debug('Not between asset and liability, continue.');+ // Log::debug('Not between asset and liability, continue.');continue;}diff --git a/app/Support/Models/AccountBalanceCalculator.php b/app/Support/Models/AccountBalanceCalculator.phpindex 9009b4543c..0e61f45077 100644--- a/app/Support/Models/AccountBalanceCalculator.php+++ b/app/Support/Models/AccountBalanceCalculator.php@@ -93,7 +93,7 @@ class AccountBalanceCalculatorpublic static function getLatestBalance(int $accountId, int $currencyId, ?Carbon $notBefore): string{if (!$notBefore instanceof Carbon) {- Log::debug(sprintf('Start balance for account #%d and currency #%d is 0.', $accountId, $currencyId));+ // Log::debug(sprintf('Start balance for account #%d and currency #%d is 0.', $accountId, $currencyId));return '0';}diff --git a/bootstrap/app.php b/bootstrap/app.phpindex 4d43d2d3d3..9289ac2d39 100644--- a/bootstrap/app.php+++ b/bootstrap/app.php@@ -31,6 +31,7 @@ use FireflyIII\Http\Middleware\InterestingMessage;use FireflyIII\Http\Middleware\IsAdmin;use FireflyIII\Http\Middleware\Range;use FireflyIII\Http\Middleware\RedirectIfAuthenticated;+use FireflyIII\Http\Middleware\SecureHeaders;use FireflyIII\Http\Middleware\StartFireflySession;use FireflyIII\Http\Middleware\VerifyCsrfToken;use Illuminate\Contracts\Debug\ExceptionHandler;@@ -94,12 +95,16 @@ $app = Application::configure(basePath: dirname(__DIR__))->withMiddleware(function (Middleware $middleware): void {// always append secure header thing.- $middleware->append(\FireflyIII\Http\Middleware\SecureHeaders::class);+ $middleware->append(SecureHeaders::class);// add stuff to the web group- $middleware->appendToGroup('web', [+ $middleware->group('web', [+ Illuminate\Cookie\Middleware\EncryptCookies::class,+ Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,StartFireflySession::class,+ Illuminate\View\Middleware\ShareErrorsFromSession::class,VerifyCsrfToken::class,+ Illuminate\Routing\Middleware\SubstituteBindings::class,CreateFreshApiToken::class,]);// new group?diff --git a/config/trustedproxies.php b/config/trustedproxies.phpnew file mode 100644index 0000000000..8bcc04c0fd--- /dev/null+++ b/config/trustedproxies.php@@ -0,0 +1,24 @@+<?php+/*+ * trustedproxies.php+ * Copyright (c) 2026 [email protected]+ *+ * This file is part of Firefly III (https://github.com/firefly-iii).+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ */++return [+ 'proxies' => env('TRUSTED_PROXIES', ''),+];