From ee6639e57c47e475f0f7b81f5242ede82d0d5554 Mon Sep 17 00:00:00 2001 From: victolee0 <39608452+victolee0@users.noreply.github.com> Date: Wed, 22 Nov 2023 16:05:58 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=ED=8F=AC=ED=8A=B8=20=ED=99=98?= =?UTF-8?q?=EA=B2=BD=EB=B3=80=EC=88=98=EB=A1=9C=20=EB=B3=80=ED=99=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BE/src/main.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/BE/src/main.ts b/BE/src/main.ts index f78acda..dbf54dc 100644 --- a/BE/src/main.ts +++ b/BE/src/main.ts @@ -9,7 +9,8 @@ async function bootstrap() { const configService = new ConfigService(); let httpsOptions = null; - if (configService.get('SSL')) { + const ssl = configService.get('SSL'); + if (ssl == 'true') { httpsOptions = { key: readFileSync(configService.get('HTTPS_KEY_PATH')), cert: readFileSync(configService.get('HTTPS_CERT_PATH')), @@ -29,6 +30,6 @@ async function bootstrap() { app.useGlobalPipes(new ValidationPipe()); - await app.listen(3000); + await app.listen(configService.get('PORT')); } bootstrap();