mirror of
https://github.com/sussy-code/backend.git
synced 2026-04-14 05:30:27 +00:00
Use trust proxy setting
Co-authored-by: mrjvs <mistrjvs@gmail.com>
This commit is contained in:
parent
78b4dbd705
commit
9eb6244515
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue