Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Force https schema if APP_FORCE_SSL=true in .env
zjeancb1cb9f328c1
diff --git a/.env.example b/.env.exampleindex dcca3ab865..59778fd8b8 100755--- a/.env.example+++ b/.env.example@@ -1,5 +1,6 @@APP_ENV=productionAPP_DEBUG=false+APP_FORCE_SSL=trueAPP_KEY=SomeRandomStringOf32CharsExactlyLOG_LEVEL=warningdiff --git a/.env.testing b/.env.testingindex 852745ab42..8aeacddc74 100755--- a/.env.testing+++ b/.env.testing@@ -1,5 +1,6 @@APP_ENV=testingAPP_DEBUG=true+APP_FORCE_SSL=falseAPP_KEY=SomeRandomStringOf32CharsExactlyLOG_LEVEL=debugdiff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.phpindex 544d2465a9..27b2a18de0 100644--- a/app/Providers/AppServiceProvider.php+++ b/app/Providers/AppServiceProvider.php@@ -20,7 +20,10 @@ class AppServiceProvider extends ServiceProvider*/public function boot(){- //+ // force https urls+ if (env('APP_FORCE_SSL', false)) {+ \URL::forceSchema('https');+ }}/**