From 23578172c0b453ada091f7c0d2e5719723a2e877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=91=D0=B0=D0=B1=D0=BA=D0=B8=D0=BD?= Date: Fri, 15 Jul 2022 17:06:26 +0300 Subject: [PATCH] fix proxy 3 --- app/Http/Middleware/TrustProxies.php | 2 +- routes/web.php | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/app/Http/Middleware/TrustProxies.php b/app/Http/Middleware/TrustProxies.php index 3391630..f295139 100644 --- a/app/Http/Middleware/TrustProxies.php +++ b/app/Http/Middleware/TrustProxies.php @@ -12,7 +12,7 @@ class TrustProxies extends Middleware * * @var array|string|null */ - protected $proxies; + protected $proxies = "*"; /** * The headers that should be used to detect proxies. diff --git a/routes/web.php b/routes/web.php index 9aef2c3..a0e7901 100644 --- a/routes/web.php +++ b/routes/web.php @@ -7,7 +7,6 @@ use Illuminate\Support\Facades\Route; use App\Http\Controllers\UserController; use App\Http\Controllers\ProjectController; use App\Http\Controllers\SelectProjectController; -use Illuminate\Support\Facades\URL; /* |-------------------------------------------------------------------------- @@ -20,17 +19,6 @@ use Illuminate\Support\Facades\URL; | */ -$proxy_url = getenv('PROXY_URL'); -$proxy_scheme = getenv('PROXY_SCHEME'); - -if (!empty($proxy_url)) { - URL::forceRootUrl($proxy_url); -} - -if (!empty($proxy_scheme)) { - URL::forceScheme($proxy_scheme); -} - Route::get('/', function () { return view('welcome'); });