summaryrefslogtreecommitdiff
path: root/lib/config/index.js
diff options
context:
space:
mode:
authorChristoph (Sheogorath) Kern2018-01-18 11:17:17 +0100
committerGitHub2018-01-18 11:17:17 +0100
commit8375544dea37f385b9851a8cbd1b264911755ae0 (patch)
treeb63aa2ee5ba87090eb4f2c0f92442467375f9abc /lib/config/index.js
parentaf082d934761cbc72c14293376f7c2df2367e6b7 (diff)
parent45976a8916ff2da60bdfb98841f7394fd2659ae7 (diff)
Merge pull request #636 from laysdra7265/fix/sslcapath
Fix sslcapath bug
Diffstat (limited to 'lib/config/index.js')
-rw-r--r--lib/config/index.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/config/index.js b/lib/config/index.js
index 3ac3de53..a14f3197 100644
--- a/lib/config/index.js
+++ b/lib/config/index.js
@@ -96,7 +96,10 @@ config.isSAMLEnable = config.saml.idpSsoUrl
config.isPDFExportEnable = config.allowpdfexport
// generate correct path
-config.sslcapath = path.join(appRootPath, config.sslcapath)
+config.sslcapath.forEach(function (capath, i, array) {
+ array[i] = path.resolve(appRootPath, capath)
+})
+
config.sslcertpath = path.join(appRootPath, config.sslcertpath)
config.sslkeypath = path.join(appRootPath, config.sslkeypath)
config.dhparampath = path.join(appRootPath, config.dhparampath)