feat: trusted proxys
CI / 🧪 Tests Laravel (push) Successful in 57s
CI / 🐳 Build & Push Image (push) Successful in 9s

This commit is contained in:
2026-07-10 20:59:20 +02:00
parent 1c6bc7c335
commit 0403575041
+8 -1
View File
@@ -13,7 +13,14 @@ return Application::configure(basePath: dirname(__DIR__))
health: '/up',
)
->withMiddleware(function (Middleware $middleware): void {
//
$middleware->trustProxies(
at: env('TRUSTED_PROXIES', '127.0.0.1'),
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,
);
})
->withExceptions(function (Exceptions $exceptions): void {
$exceptions->shouldRenderJsonWhen(