fix proxy 3

This commit is contained in:
Александр Бабкин
2022-07-15 17:06:26 +03:00
parent 750425e88f
commit 23578172c0
2 changed files with 1 additions and 13 deletions

View File

@@ -12,7 +12,7 @@ class TrustProxies extends Middleware
*
* @var array<int, string>|string|null
*/
protected $proxies;
protected $proxies = "*";
/**
* The headers that should be used to detect proxies.

View File

@@ -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');
});