update proxy

This commit is contained in:
Jagad R R
2025-02-03 17:19:28 +07:00
parent 478fdd3b48
commit 8f52373ede
3 changed files with 8 additions and 13 deletions
+1
View File
@@ -18,6 +18,7 @@ PHP_CLI_SERVER_WORKERS=4
BCRYPT_ROUNDS=12
LOG_CHANNEL=stack
LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null
+1
View File
@@ -12,3 +12,4 @@ npm-debug.log
yarn-error.log
/.idea
/.vscode
.env
+6 -13
View File
@@ -7,21 +7,14 @@ use Illuminate\Http\Request;
class TrustProxies extends Middleware
{
/**
* The trusted proxies for this application.
*
* @var array|string
*/
protected $proxies;
// Trust all proxies (simplest for reverse proxy setups)
protected $proxies = '*';
/**
* The headers that should be used to detect proxies.
*
* @var int
*/
protected $headers = Request::HEADER_X_FORWARDED_FOR |
// Headers to detect HTTPS
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;
}
}