use new parameter in hsts

Signed-off-by: Raccoon <raccoon@hackmd.io>
This commit is contained in:
Raccoon 2021-06-12 14:04:07 +08:00
parent 67491af2a1
commit 019196484a
No known key found for this signature in database
GPG Key ID: 06770355DC9ECD38

View File

@ -105,7 +105,7 @@ const sessionStore = new SequelizeStore({
if (config.hsts.enable) {
app.use(helmet.hsts({
maxAge: config.hsts.maxAgeSeconds,
includeSubdomains: config.hsts.includeSubdomains,
includeSubDomains: config.hsts.includeSubdomains,
preload: config.hsts.preload
}))
} else if (config.useSSL) {