pull/7916/merge
David Lakatos 2 days ago committed by GitHub
commit 4f770a6827
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -145,3 +145,11 @@ dataPath: ./data
# file uploads.
bodyParserLimit: 5mb
# ---------------------------------------------------------------------
# User Session Cleanup
# ---------------------------------------------------------------------
# Configures how often Knex cleans up stale sessions from the
# database. Should be defined in milliseconds.
sessionClearInterval: 60000

@ -113,6 +113,7 @@ defaults:
search:
maxHits: 100
maintainerEmail: security@requarks.io
sessionClearInterval: 60000
localeNamespaces:
- admin
- auth

@ -81,7 +81,8 @@ module.exports = async () => {
resave: false,
saveUninitialized: false,
store: new KnexSessionStore({
knex: WIKI.models.knex
knex: WIKI.models.knex,
clearInterval: WIKI.config.sessionClearInterval
})
}))
app.use(WIKI.auth.passport.initialize())

Loading…
Cancel
Save