feat: add trust proxy
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user