fixed sslcapath bug

This commit is contained in:
LaysDragon 2017-11-28 21:23:50 +08:00
parent 8112cd6fef
commit 9949795533
2 changed files with 10 additions and 2 deletions

View file

@ -12,6 +12,6 @@ function getFile (path) {
module.exports = {
sslkeypath: getFile('/run/secrets/key.pem'),
sslcertpath: getFile('/run/secrets/cert.pem'),
sslcapath: getFile('/run/secrets/ca.pem'),
sslcapath: getFile('/run/secrets/ca.pem') !== undefined ? [getFile('/run/secrets/ca.pem')] : [],
dhparampath: getFile('/run/secrets/dhparam.pem')
}