mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-29 06:15:29 -04:00
Allow configuring Disqus & GA CSP with env vars
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
0c6482abc5
commit
7283ccd5e8
1 changed files with 3 additions and 1 deletions
|
@ -20,7 +20,9 @@ module.exports = {
|
||||||
},
|
},
|
||||||
csp: {
|
csp: {
|
||||||
enable: toBooleanConfig(process.env.CMD_CSP_ENABLE),
|
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,
|
cookiePolicy: process.env.CMD_COOKIE_POLICY,
|
||||||
protocolUseSSL: toBooleanConfig(process.env.CMD_PROTOCOL_USESSL),
|
protocolUseSSL: toBooleanConfig(process.env.CMD_PROTOCOL_USESSL),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue