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
1 changed files with 1 additions and 0 deletions

View File

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