From 1634d5c567180b072ed4e345b841642f4ea70924 Mon Sep 17 00:00:00 2001 From: Literallie Date: Fri, 13 Oct 2017 01:14:50 +0200 Subject: Add on/off env var for HSTS --- lib/config/environment.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') 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), -- cgit v1.2.3