From e32995c70f35bf6c262b3167bdc1f06608771913 Mon Sep 17 00:00:00 2001 From: radmehr Date: Sat, 28 Nov 2026 16:50:42 +0330 Subject: [PATCH] feat: add trust proxy --- src/main.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.ts b/src/main.ts index 275fa18..a17496e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -11,6 +11,9 @@ import { AdminPanelSetup } from './modules/admin-panel/admin-panel.setup'; async function bootstrap() { const app = await NestFactory.create(AppModule, { bufferLogs: true }); + // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access + app.getHttpAdapter().getInstance().set('trust proxy', 1); + app.useLogger(app.get(Logger)); app.setGlobalPrefix('v1');