Add on/off env var for HSTS

This commit is contained in:
Literallie 2017-10-13 01:14:50 +02:00
parent 56411ca0e1
commit 1634d5c567
No known key found for this signature in database
GPG key ID: 7BE463C902ED152C
3 changed files with 8 additions and 1 deletions

View file

@ -8,6 +8,9 @@ module.exports = {
port: process.env.HMD_PORT,
urladdport: toBooleanConfig(process.env.HMD_URL_ADDPORT),
usessl: toBooleanConfig(process.env.HMD_USESSL),
hsts: {
enable: toBooleanConfig(process.env.HMD_HSTS_ENABLE),
},
protocolusessl: toBooleanConfig(process.env.HMD_PROTOCOL_USESSL),
alloworigin: process.env.HMD_ALLOW_ORIGIN ? process.env.HMD_ALLOW_ORIGIN.split(',') : undefined,
usecdn: toBooleanConfig(process.env.HMD_USECDN),