ldc-mesbr-app/app/Http/Middleware/TrustProxies.php
Thibault Richy e54f254678 https proxy
2019-02-27 14:20:46 +01:00

23 lines
448 B
PHP

<?php
namespace App\Http\Middleware;
use Illuminate\Http\Request;
use Fideloper\Proxy\TrustProxies as Middleware;
class TrustProxies extends Middleware
{
/**
* The trusted proxies for this application.
*
* @var array
*/
protected $proxies = ['192.168.34.1'];
/**
* The headers that should be used to detect proxies.
*
* @var int
*/
protected $headers = Request::HEADER_X_FORWARDED_ALL;
}