Remove extra quotes from website HSTS (#196)
parent
ff88e2f322
commit
d58b6e08d9
|
@ -154,7 +154,7 @@ export default (domain, domains, global) => {
|
||||||
if (!commonHsts(domains) && domain.https.hsts.computed) {
|
if (!commonHsts(domains) && domain.https.hsts.computed) {
|
||||||
serverConfig.push(['# HSTS', '']);
|
serverConfig.push(['# HSTS', '']);
|
||||||
serverConfig.push(['add_header Strict-Transport-Security',
|
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
|
// Security
|
||||||
|
|
Loading…
Reference in New Issue