Files
.idea
app
Console
Exceptions
Http
Controllers
Middleware
Authenticate.php
EncryptCookies.php
PreventRequestsDuringMaintenance.php
RedirectIfAuthenticated.php
TrimStrings.php
TrustHosts.php
TrustProxies.php
VerifyCsrfToken.php
Kernel.php
Models
Providers
bootstrap
config
database
deploy
public
resources
routes
storage
tests
.drone.yml
.editorconfig
.env.example
.gitattributes
.gitignore
.styleci.yml
Dockerfile
README.md
artisan
composer.json
composer.lock
package-lock.json
package.json
phpunit.xml
post_deploy.sh
server.php
webpack.mix.js
eliteregistry/app/Http/Middleware/TrustProxies.php
2021-04-06 22:03:54 -07:00

24 lines
585 B
PHP

<?php
namespace App\Http\Middleware;
use Fideloper\Proxy\TrustProxies as Middleware;
use Illuminate\Http\Request;
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_FOR | Request::HEADER_X_FORWARDED_HOST | Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO | Request::HEADER_X_FORWARDED_AWS_ELB;
}