fix: enable trust proxy with express adapter

This commit is contained in:
Matthieu
2025-09-18 08:26:26 +02:00
parent 11695cec7c
commit 9ce37ff148
18 changed files with 573 additions and 571 deletions

View File

@@ -1,10 +1,11 @@
import { NestFactory } from '@nestjs/core';
import { ValidationPipe } from '@nestjs/common';
import { NestExpressApplication } from '@nestjs/platform-express';
import * as session from 'express-session';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
const app = await NestFactory.create<NestExpressApplication>(AppModule);
app.set('trust proxy', 1);