mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 06:34:39 -04:00
fix(config): ssl environment configs not parse properly
This commit is contained in:
parent
826ad213d6
commit
0c619fee91
3 changed files with 20 additions and 7 deletions
8
lib/config/utils.js
Normal file
8
lib/config/utils.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
'use strict'
|
||||
|
||||
exports.toBooleanConfig = function toBooleanConfig (configValue) {
|
||||
if (configValue && typeof configValue === 'string') {
|
||||
return (configValue === 'true')
|
||||
}
|
||||
return configValue
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue