File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,6 @@ function getFile (path) {
1212module . exports = {
1313 sslkeypath : getFile ( '/run/secrets/key.pem' ) ,
1414 sslcertpath : getFile ( '/run/secrets/cert.pem' ) ,
15- sslcapath : getFile ( '/run/secrets/ca.pem' ) ,
15+ sslcapath : getFile ( '/run/secrets/ca.pem' ) !== undefined ? [ getFile ( '/run/secrets/ca.pem' ) ] : [ ] ,
1616 dhparampath : getFile ( '/run/secrets/dhparam.pem' )
1717}
Original file line number Diff line number Diff line change @@ -96,7 +96,10 @@ config.isSAMLEnable = config.saml.idpSsoUrl
9696config . isPDFExportEnable = config . allowpdfexport
9797
9898// generate correct path
99- config . sslcapath = path . join ( appRootPath , config . sslcapath )
99+ config . sslcapath . forEach ( function ( capath , i , array ) {
100+ array [ i ] = path . resolve ( appRootPath , capath )
101+ } )
102+
100103config . sslcertpath = path . join ( appRootPath , config . sslcertpath )
101104config . sslkeypath = path . join ( appRootPath , config . sslkeypath )
102105config . dhparampath = path . join ( appRootPath , config . dhparampath )
You can’t perform that action at this time.
0 commit comments