Don't add whole app to docker image
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tyler
2020-12-21 03:43:16 -05:00
parent 70523f5c22
commit bed34d5350
4 changed files with 11 additions and 19 deletions

View File

@ -5,24 +5,19 @@ namespace App\Http\Middleware;
use Fideloper\Proxy\TrustProxies as Middleware;
use Illuminate\Http\Request;
class TrustProxies extends Middleware {
class TrustProxies extends Middleware
{
/**
* The trusted proxies for this application.
*
* @var array
* @var array|string|null
*/
protected $proxies;
/**
* The current proxy header mappings.
* The headers that should be used to detect proxies.
*
* @var array
* @var int
*/
protected $headers = [
Request::HEADER_FORWARDED => 'FORWARDED',
Request::HEADER_X_FORWARDED_FOR => 'X_FORWARDED_FOR',
Request::HEADER_X_FORWARDED_HOST => 'X_FORWARDED_HOST',
Request::HEADER_X_FORWARDED_PORT => 'X_FORWARDED_PORT',
Request::HEADER_X_FORWARDED_PROTO => 'X_FORWARDED_PROTO',
];
}
protected $headers = Request::HEADER_X_FORWARDED_ALL;
}