summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLiterallie2017-10-13 01:14:50 +0200
committerLiterallie2017-10-13 01:42:05 +0200
commit1634d5c567180b072ed4e345b841642f4ea70924 (patch)
treec0a03cd246177593233c367bd711695a682acaab /lib
parent56411ca0e10a90d8206508171e3871146bce5351 (diff)
Add on/off env var for HSTS
Diffstat (limited to '')
-rw-r--r--lib/config/environment.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/config/environment.js b/lib/config/environment.js
index c108a6f9..27b697a0 100644
--- a/lib/config/environment.js
+++ b/lib/config/environment.js
@@ -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),