fix: support sidataprod path behind traefik
CI/CD Pipeline to Rancher - SIDATA / build-and-deploy (push) Failing after 2m3s
CI/CD Pipeline to Rancher - SIDATA / build-and-deploy (push) Failing after 2m3s
This commit is contained in:
@@ -2,22 +2,13 @@
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Http\Middleware\TrustProxies as Middleware;
|
||||
use Illuminate\Http\Request;
|
||||
use Fideloper\Proxy\TrustProxies as Middleware;
|
||||
|
||||
class TrustProxies extends Middleware
|
||||
{
|
||||
/**
|
||||
* The trusted proxies for this application.
|
||||
*
|
||||
* @var array|string|null
|
||||
*/
|
||||
protected $proxies = '*';
|
||||
|
||||
/**
|
||||
* The headers that should be used to detect proxies.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $headers = Request::HEADER_X_FORWARDED_ALL;
|
||||
}
|
||||
protected $headers = [
|
||||
\Illuminate\Http\Request::HEADER_X_FORWARDED_ALL,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user