fix: trustProxy for Fastify

This commit is contained in:
Andras Bacsai
2022-07-06 19:34:16 +02:00
committed by GitHub
parent 62bfb5dacc
commit 792d51d93f
2 changed files with 4 additions and 2 deletions

View File

@@ -26,7 +26,8 @@ declare module 'fastify' {
const port = isDev ? 3001 : 3000;
const host = '0.0.0.0';
const fastify = Fastify({
logger: false
logger: false,
trustProxy: true
});
const schema = {
type: 'object',