From abd788d8f4d18b5a977226ba1224cba7f2b7fa9b Mon Sep 17 00:00:00 2001 From: Adrian Woeltche Date: Thu, 21 Jun 2018 16:45:18 +0200 Subject: [PATCH] optional ca and dhparams --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index f2a0aaf5..9428aaf4 100644 --- a/index.js +++ b/index.js @@ -41,8 +41,8 @@ app.set('port', port); let server = (!config.www.https) ? http.createServer(app) : https.createServer({ cert: fs.readFileSync(config.www.cert), key: fs.readFileSync(config.www.key), - ca: fs.readFileSync(config.www.ca), - dhparams: fs.readFileSync(config.www.dhparams) + ca: config.www.ca ? fs.readFileSync(config.www.ca) : undefined, + dhparams: config.www.dhparams ? fs.readFileSync(config.www.dhparams) : undefined }, app); // Check if database needs upgrading before starting the server