From 4bd2bd4f128b08425bd2fddf51aa509396bf8fd5 Mon Sep 17 00:00:00 2001 From: Pavel Gnedov Date: Thu, 7 Apr 2022 10:03:17 +0700 Subject: [PATCH] Custom port supported --- src/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 13cad38..eb2b608 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,8 +1,10 @@ import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; +process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = "0"; + async function bootstrap() { const app = await NestFactory.create(AppModule); - await app.listen(3000); + await app.listen(process.env['PORT'] || 3000); } bootstrap();