From d324494e1e4af3e226d5db428af1fd367c519b2f Mon Sep 17 00:00:00 2001 From: biermapa Date: Thu, 4 Nov 2021 17:59:04 +0100 Subject: [PATCH] Change app.ts for node_tls_reject --- src/server/app.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/app.ts b/src/server/app.ts index e7f23cb..b7d3185 100644 --- a/src/server/app.ts +++ b/src/server/app.ts @@ -25,6 +25,7 @@ export const app = express() if (!CONFIG.dev_mode) { app.set("trust proxy", 1) // trust first proxy sessionConf.cookie.secure = true // serve secure cookies + process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0" } else { process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0" // disable tls rejects }