From 76319d96259f6b7f2101b6555c81b6f025a34359 Mon Sep 17 00:00:00 2001 From: Ben Wilson Date: Wed, 9 Aug 2023 09:52:32 -0400 Subject: [PATCH] https --- src/main.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main.ts b/src/main.ts index 2c3745c..9363eb7 100644 --- a/src/main.ts +++ b/src/main.ts @@ -19,12 +19,13 @@ async function bootstrap() { const secure = process.env.API_SECURE?.toLowerCase() == 'true'; if (secure) { - const httpsOptions = { - key: readFileSync('./secrets/key.pem'), - cert: readFileSync('./secrets/cert.pem'), - }; - options = { https: httpsOptions }; + options = { + https: { + key: readFileSync('./secrets/key.pem'), + cert: readFileSync('./secrets/cert.pem'), + } + }; } else {