From 9eb6244515774916dbcfc4c9102678b4dee27549 Mon Sep 17 00:00:00 2001 From: William Oldham Date: Sat, 4 Nov 2023 14:53:56 +0000 Subject: [PATCH] Use trust proxy setting Co-authored-by: mrjvs --- src/modules/fastify/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/fastify/index.ts b/src/modules/fastify/index.ts index b4fa39d..c2e0943 100644 --- a/src/modules/fastify/index.ts +++ b/src/modules/fastify/index.ts @@ -17,6 +17,7 @@ export async function setupFastify(): Promise { // create server const app = Fastify({ logger: makeFastifyLogger(log) as any, + trustProxy: conf.server.trustProxy, }); let exportedApp: FastifyInstance | null = null;