feat(xo-server): make Helmet configurable (#4141)

This commit is contained in:
Julien Fontanet
2019-04-12 13:49:51 +02:00
committed by GitHub
parent 97cabbbc69
commit a03dcbbf55
2 changed files with 7 additions and 1 deletions

View File

@@ -49,6 +49,12 @@ maxTokenValidity = '0.5 year'
# Delay for which backups listing on a remote is cached
listingDebounce = '1 min'
# Helmet handles HTTP security via headers
#
# https://helmetjs.github.io/docs/
#[http.helmet.hsts]
#includeSubDomains = false
[[http.listen]]
port = 80

View File

@@ -93,7 +93,7 @@ async function loadConfiguration() {
function createExpressApp(config) {
const app = createExpress()
app.use(helmet())
app.use(helmet(config.http.helmet))
app.use(compression())