empty(env('TRUSTED_PROXIES')) ? '*' : explode(',', trim(env('TRUSTED_PROXIES'))), /* |-------------------------------------------------------------------------- | Respected Headers |-------------------------------------------------------------------------- | | Change these if the proxy does not send the default header names. Note | that headers such as X-Forwarded-For are transformed to | HTTP_X_FORWARDED_FOR format. | | By default, we are using the Symfony defaults. | */ 'headers' => [ Request::HEADER_CLIENT_IP => 'X_FORWARDED_FOR', Request::HEADER_CLIENT_HOST => 'X_FORWARDED_HOST', Request::HEADER_CLIENT_PROTO => 'X_FORWARDED_PROTO', Request::HEADER_CLIENT_PORT => 'X_FORWARDED_PORT', ], ];