fix(config): some environment config not parse properly
This commit is contained in:
parent
cceb5b1a26
commit
826ad213d6
2 changed files with 7 additions and 7 deletions
|
@ -5,11 +5,11 @@ module.exports = {
|
|||
urlpath: process.env.HMD_URL_PATH,
|
||||
port: process.env.HMD_PORT,
|
||||
urladdport: process.env.HMD_URL_ADDPORT,
|
||||
usessl: process.env.HMD_PROTOCOL_USESSL,
|
||||
usessl: (process.env.HMD_PROTOCOL_USESSL === 'true'),
|
||||
alloworigin: process.env.HMD_ALLOW_ORIGIN ? process.env.HMD_ALLOW_ORIGIN.split(',') : undefined,
|
||||
usecdn: process.env.HMD_USECDN,
|
||||
allowanonymous: process.env.HMD_ALLOW_ANONYMOUS,
|
||||
allowfreeurl: process.env.HMD_ALLOW_FREEURL,
|
||||
usecdn: (process.env.HMD_USECDN === 'true'),
|
||||
allowanonymous: (process.env.HMD_ALLOW_ANONYMOUS === 'true'),
|
||||
allowfreeurl: (process.env.HMD_ALLOW_FREEURL === 'true'),
|
||||
defaultpermission: process.env.HMD_DEFAULT_PERMISSION,
|
||||
dburl: process.env.HMD_DB_URL,
|
||||
imageUploadType: process.env.HMD_IMAGE_UPLOAD_TYPE,
|
||||
|
@ -59,6 +59,6 @@ module.exports = {
|
|||
searchAttributes: process.env.HMD_LDAP_SEARCHATTRIBUTES,
|
||||
tlsca: process.env.HMD_LDAP_TLS_CA
|
||||
},
|
||||
email: process.env.HMD_EMAIL,
|
||||
allowemailregister: process.env.HMD_ALLOW_EMAIL_REGISTER
|
||||
email: (process.env.HMD_EMAIL === 'true'),
|
||||
allowemailregister: (process.env.HMD_ALLOW_EMAIL_REGISTER === 'true')
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
module.exports = {
|
||||
debug: process.env.DEBUG,
|
||||
debug: (process.env.DEBUG === 'true'),
|
||||
dburl: process.env.DATABASE_URL,
|
||||
urlpath: process.env.URL_PATH,
|
||||
port: process.env.PORT
|
||||
|
|
Loading…
Reference in a new issue