diff options
author | Literallie | 2017-10-13 01:15:35 +0200 |
---|---|---|
committer | Literallie | 2017-10-13 01:42:05 +0200 |
commit | 6bdc90d6ffd60cf8fe0509eb9fb3b2d47f185c31 (patch) | |
tree | 2a41eac7e4910feded2c1b72aed5b59cb3b93440 /lib/config | |
parent | 1634d5c567180b072ed4e345b841642f4ea70924 (diff) |
Add env vars for extra HSTS options
Diffstat (limited to 'lib/config')
-rw-r--r-- | lib/config/environment.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/config/environment.js b/lib/config/environment.js index 27b697a0..40b7e09f 100644 --- a/lib/config/environment.js +++ b/lib/config/environment.js @@ -10,6 +10,9 @@ module.exports = { usessl: toBooleanConfig(process.env.HMD_USESSL), hsts: { enable: toBooleanConfig(process.env.HMD_HSTS_ENABLE), + maxAgeSeconds: process.env.HMD_HSTS_MAX_AGE, + includeSubdomains: toBooleanConfig(process.env.HMD_HSTS_INCLUDE_SUBDOMAINS), + preload: toBooleanConfig(process.env.HMD_HSTS_PRELOAD) }, protocolusessl: toBooleanConfig(process.env.HMD_PROTOCOL_USESSL), alloworigin: process.env.HMD_ALLOW_ORIGIN ? process.env.HMD_ALLOW_ORIGIN.split(',') : undefined, |