From b51a048777ee36bc47d2a23599ad72091197b075 Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Mon, 4 Mar 2019 17:13:33 +0100 Subject: Fix wrong value type for HSTS environment variable Seem like also environment variables are affected. This patch fixes that as well. Signed-off-by: Sheogorath --- lib/config/environment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/config/environment.js') diff --git a/lib/config/environment.js b/lib/config/environment.js index a57fe0db..fc757cf1 100644 --- a/lib/config/environment.js +++ b/lib/config/environment.js @@ -14,7 +14,7 @@ module.exports = { useSSL: toBooleanConfig(process.env.CMD_USESSL), hsts: { enable: toBooleanConfig(process.env.CMD_HSTS_ENABLE), - maxAgeSeconds: process.env.CMD_HSTS_MAX_AGE, + maxAgeSeconds: toIntegerConfig(process.env.CMD_HSTS_MAX_AGE), includeSubdomains: toBooleanConfig(process.env.CMD_HSTS_INCLUDE_SUBDOMAINS), preload: toBooleanConfig(process.env.CMD_HSTS_PRELOAD) }, -- cgit v1.2.3