chore(env): update production environment variables and enhance proxy handling in Nginx configuration

This commit is contained in:
2026-06-07 22:20:03 +03:30
parent d1d42b38d1
commit ca43502ffb
5 changed files with 19 additions and 4 deletions

View File

@@ -13,7 +13,14 @@ return Application::configure(basePath: dirname(__DIR__))
health: '/up',
)
->withMiddleware(function (Middleware $middleware): void {
//
$middleware->trustProxies(
at: '*',
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(