optional ca and dhparams
This commit is contained in:
parent
4501f71dd8
commit
abd788d8f4
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
@ -41,8 +41,8 @@ app.set('port', port);
|
||||||
let server = (!config.www.https) ? http.createServer(app) : https.createServer({
|
let server = (!config.www.https) ? http.createServer(app) : https.createServer({
|
||||||
cert: fs.readFileSync(config.www.cert),
|
cert: fs.readFileSync(config.www.cert),
|
||||||
key: fs.readFileSync(config.www.key),
|
key: fs.readFileSync(config.www.key),
|
||||||
ca: fs.readFileSync(config.www.ca),
|
ca: config.www.ca ? fs.readFileSync(config.www.ca) : undefined,
|
||||||
dhparams: fs.readFileSync(config.www.dhparams)
|
dhparams: config.www.dhparams ? fs.readFileSync(config.www.dhparams) : undefined
|
||||||
}, app);
|
}, app);
|
||||||
|
|
||||||
// Check if database needs upgrading before starting the server
|
// Check if database needs upgrading before starting the server
|
||||||
|
|
Loading…
Reference in a new issue