mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-29 05:54:31 -05:00
Merge pull request #636 from laysdra7265/fix/sslcapath
Fix sslcapath bug
This commit is contained in:
commit
8375544dea
2 changed files with 5 additions and 2 deletions
|
@ -12,6 +12,6 @@ function getFile (path) {
|
||||||
module.exports = {
|
module.exports = {
|
||||||
sslkeypath: getFile('/run/secrets/key.pem'),
|
sslkeypath: getFile('/run/secrets/key.pem'),
|
||||||
sslcertpath: getFile('/run/secrets/cert.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')
|
dhparampath: getFile('/run/secrets/dhparam.pem')
|
||||||
}
|
}
|
||||||
|
|
|
@ -96,7 +96,10 @@ config.isSAMLEnable = config.saml.idpSsoUrl
|
||||||
config.isPDFExportEnable = config.allowpdfexport
|
config.isPDFExportEnable = config.allowpdfexport
|
||||||
|
|
||||||
// generate correct path
|
// 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.sslcertpath = path.join(appRootPath, config.sslcertpath)
|
||||||
config.sslkeypath = path.join(appRootPath, config.sslkeypath)
|
config.sslkeypath = path.join(appRootPath, config.sslkeypath)
|
||||||
config.dhparampath = path.join(appRootPath, config.dhparampath)
|
config.dhparampath = path.join(appRootPath, config.dhparampath)
|
||||||
|
|
Loading…
Reference in a new issue