mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 17:56:30 -05:00
Merge pull request #786 from SISheogorath/fix/compatiblityConfig
Fix some issues with legacy config compatiblity
This commit is contained in:
commit
1649a9b742
2 changed files with 6 additions and 6 deletions
|
@ -10,8 +10,8 @@ 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') !== undefined ? [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')
|
||||||
}
|
}
|
||||||
|
|
|
@ -110,8 +110,8 @@ for (let i = keys.length; i--;) {
|
||||||
// and the config with uppercase is not set
|
// and the config with uppercase is not set
|
||||||
// we set the new config using the old key.
|
// we set the new config using the old key.
|
||||||
if (uppercase.test(keys[i]) &&
|
if (uppercase.test(keys[i]) &&
|
||||||
config[lowercaseKey] &&
|
config[lowercaseKey] !== undefined &&
|
||||||
!config[keys[1]]) {
|
fileConfig[keys[i]] === undefined) {
|
||||||
logger.warn('config.js contains deprecated lowercase setting for ' + keys[i] + '. Please change your config.js file to replace ' + lowercaseKey + ' with ' + keys[i])
|
logger.warn('config.js contains deprecated lowercase setting for ' + keys[i] + '. Please change your config.js file to replace ' + lowercaseKey + ' with ' + keys[i])
|
||||||
config[keys[i]] = config[lowercaseKey]
|
config[keys[i]] = config[lowercaseKey]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue