Use trust proxy setting

Co-authored-by: mrjvs <mistrjvs@gmail.com>
This commit is contained in:
William Oldham
2023-11-04 14:53:56 +00:00
parent 78b4dbd705
commit 9eb6244515

View File

@@ -17,6 +17,7 @@ export async function setupFastify(): Promise<FastifyInstance> {
// create server // create server
const app = Fastify({ const app = Fastify({
logger: makeFastifyLogger(log) as any, logger: makeFastifyLogger(log) as any,
trustProxy: conf.server.trustProxy,
}); });
let exportedApp: FastifyInstance | null = null; let exportedApp: FastifyInstance | null = null;