From 73a095e4fad4de47762925705a7961113b17a218 Mon Sep 17 00:00:00 2001 From: aelassas Date: Sat, 17 Feb 2024 22:29:29 +0100 Subject: [PATCH] index.ts --- api/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/api/src/index.ts b/api/src/index.ts index bdf1ad4e..aee22849 100644 --- a/api/src/index.ts +++ b/api/src/index.ts @@ -9,6 +9,7 @@ import * as env from './config/env.config' if (await DatabaseHelper.Connect(env.DB_DEBUG)) { let server: http.Server | https.Server + if (env.HTTPS) { https.globalAgent.maxSockets = Number.POSITIVE_INFINITY const privateKey = await fs.readFile(env.PRIVATE_KEY, 'utf8')