From 96ed5857abeda4c778455dfbc975566e57357a50 Mon Sep 17 00:00:00 2001 From: Xavier Abad <77491413+xabg2@users.noreply.github.com> Date: Fri, 13 Feb 2026 17:50:36 +0100 Subject: [PATCH 1/2] feat: trust in one proxy --- src/app.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app.ts b/src/app.ts index 71d58a58..97fd8db2 100644 --- a/src/app.ts +++ b/src/app.ts @@ -53,6 +53,7 @@ export async function buildApp({ }: AppDependencies): Promise { const fastify = Fastify({ loggerInstance: Logger.getPinoLogger(), + trustProxy: 1, }); registerErrorHandler(fastify); From 2c95346b102e5e0bd424b8d9ec81d6a34f91dfb2 Mon Sep 17 00:00:00 2001 From: Xavier Abad <77491413+xabg2@users.noreply.github.com> Date: Fri, 13 Feb 2026 18:49:53 +0100 Subject: [PATCH 2/2] fix: use boolean instead --- src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index 97fd8db2..cd755816 100644 --- a/src/app.ts +++ b/src/app.ts @@ -53,7 +53,7 @@ export async function buildApp({ }: AppDependencies): Promise { const fastify = Fastify({ loggerInstance: Logger.getPinoLogger(), - trustProxy: 1, + trustProxy: true, }); registerErrorHandler(fastify);