From ff7b1646b84edc0a64b1faed33a9543e6af9cfb1 Mon Sep 17 00:00:00 2001 From: Den Piligrim <89912505+vasiljevdenis@users.noreply.github.com> Date: Sun, 1 Feb 2026 12:50:45 +0300 Subject: [PATCH] nest proto --- server/src/main.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/src/main.ts b/server/src/main.ts index 8b3b277..91056ca 100644 --- a/server/src/main.ts +++ b/server/src/main.ts @@ -1,10 +1,13 @@ import { NestFactory } from '@nestjs/core'; +import { NestExpressApplication } from '@nestjs/platform-express'; import { AppModule } from './app.module'; import { AuthService } from './auth/auth.service'; import { RequestMethod } from '@nestjs/common'; async function bootstrap() { - const app = await NestFactory.create(AppModule); + const app = await NestFactory.create(AppModule); + + app.set('trust proxy', 1); const authService = app.get(AuthService); await authService.seedAdmin();