Remove extra quotes from website HSTS (#196)

This commit is contained in:
Matt (IPv4) Cowley
2020-12-14 15:52:41 +00:00
committed by GitHub
parent ff88e2f322
commit d58b6e08d9

View File

@@ -154,7 +154,7 @@ export default (domain, domains, global) => {
if (!commonHsts(domains) && domain.https.hsts.computed) {
serverConfig.push(['# HSTS', '']);
serverConfig.push(['add_header Strict-Transport-Security',
`'"max-age=31536000${domain.https.hstsSubdomains.computed ? '; includeSubDomains' : ''}${domain.https.hstsPreload.computed ? '; preload' : ''}" always'`]);
`"max-age=31536000${domain.https.hstsSubdomains.computed ? '; includeSubDomains' : ''}${domain.https.hstsPreload.computed ? '; preload' : ''}" always`]);
}
// Security