mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-12 07:04:22 +08:00
Remove extra quotes from website HSTS (#196)
This commit is contained in:
committed by
GitHub
parent
ff88e2f322
commit
d58b6e08d9
@@ -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
|
||||
|
Reference in New Issue
Block a user