From 7283ccd5e8425c4812a8cb5f28420764a95708d8 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Mon, 7 Jun 2021 22:20:36 +0200 Subject: [PATCH] Allow configuring Disqus & GA CSP with env vars Signed-off-by: David Mehren --- lib/config/environment.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/config/environment.js b/lib/config/environment.js index e03bac8a3..de4bd8731 100644 --- a/lib/config/environment.js +++ b/lib/config/environment.js @@ -20,7 +20,9 @@ module.exports = { }, csp: { enable: toBooleanConfig(process.env.CMD_CSP_ENABLE), - reportURI: process.env.CMD_CSP_REPORTURI + reportURI: process.env.CMD_CSP_REPORTURI, + addDisqus: toBooleanConfig(process.env.CMD_CSP_ADD_DISQUS), + addGoogleAnalytics: toBooleanConfig(process.env.CMD_CSP_ADD_GOOGLE_ANALYTICS) }, cookiePolicy: process.env.CMD_COOKIE_POLICY, protocolUseSSL: toBooleanConfig(process.env.CMD_PROTOCOL_USESSL),