From c08a186f4e926190ca0afbe719774c393cf5861d Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Wed, 19 May 2021 20:34:27 +0300 Subject: [PATCH] changes --- api.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api.js b/api.js index 2ab154dc..5378abb9 100644 --- a/api.js +++ b/api.js @@ -139,11 +139,11 @@ certs.loadTLSOptions(certOptions, 'api'); if (config.api.secure && certOptions.key) { let httpsServerOptions = {}; - httpsServerOptions.key = certOptions.key; + serverOptions.key = httpsServerOptions.key = certOptions.key; if (httpsServerOptions.ca) { - httpsServerOptions.ca = certOptions.ca; + serverOptions.ca = httpsServerOptions.ca = certOptions.ca; } - httpsServerOptions.certificate = certOptions.cert; + serverOptions.certificate = httpsServerOptions.certificate = certOptions.cert; let defaultSecureContext = tls.createSecureContext(httpsServerOptions);