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,
|
urlpath: process.env.HMD_URL_PATH,
|
||||||
port: process.env.HMD_PORT,
|
port: process.env.HMD_PORT,
|
||||||
urladdport: process.env.HMD_URL_ADDPORT,
|
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,
|
alloworigin: process.env.HMD_ALLOW_ORIGIN ? process.env.HMD_ALLOW_ORIGIN.split(',') : undefined,
|
||||||
usecdn: process.env.HMD_USECDN,
|
usecdn: (process.env.HMD_USECDN === 'true'),
|
||||||
allowanonymous: process.env.HMD_ALLOW_ANONYMOUS,
|
allowanonymous: (process.env.HMD_ALLOW_ANONYMOUS === 'true'),
|
||||||
allowfreeurl: process.env.HMD_ALLOW_FREEURL,
|
allowfreeurl: (process.env.HMD_ALLOW_FREEURL === 'true'),
|
||||||
defaultpermission: process.env.HMD_DEFAULT_PERMISSION,
|
defaultpermission: process.env.HMD_DEFAULT_PERMISSION,
|
||||||
dburl: process.env.HMD_DB_URL,
|
dburl: process.env.HMD_DB_URL,
|
||||||
imageUploadType: process.env.HMD_IMAGE_UPLOAD_TYPE,
|
imageUploadType: process.env.HMD_IMAGE_UPLOAD_TYPE,
|
||||||
|
@ -59,6 +59,6 @@ module.exports = {
|
||||||
searchAttributes: process.env.HMD_LDAP_SEARCHATTRIBUTES,
|
searchAttributes: process.env.HMD_LDAP_SEARCHATTRIBUTES,
|
||||||
tlsca: process.env.HMD_LDAP_TLS_CA
|
tlsca: process.env.HMD_LDAP_TLS_CA
|
||||||
},
|
},
|
||||||
email: process.env.HMD_EMAIL,
|
email: (process.env.HMD_EMAIL === 'true'),
|
||||||
allowemailregister: process.env.HMD_ALLOW_EMAIL_REGISTER
|
allowemailregister: (process.env.HMD_ALLOW_EMAIL_REGISTER === 'true')
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
debug: process.env.DEBUG,
|
debug: (process.env.DEBUG === 'true'),
|
||||||
dburl: process.env.DATABASE_URL,
|
dburl: process.env.DATABASE_URL,
|
||||||
urlpath: process.env.URL_PATH,
|
urlpath: process.env.URL_PATH,
|
||||||
port: process.env.PORT
|
port: process.env.PORT
|
||||||
|
|
Loading…
Reference in a new issue