fix(config): ssl environment configs not parse properly

This commit is contained in:
Raccoon Li 2017-05-08 20:41:38 +08:00
parent 826ad213d6
commit 0c619fee91
3 changed files with 20 additions and 7 deletions

8
lib/config/utils.js Normal file
View file

@ -0,0 +1,8 @@
'use strict'
exports.toBooleanConfig = function toBooleanConfig (configValue) {
if (configValue && typeof configValue === 'string') {
return (configValue === 'true')
}
return configValue
}