mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-08 00:08:14 +01:00
Revert MemoryStore used in expressSession
This commit is contained in:
parent
2f98cb9b6d
commit
7e442ecb3d
@ -41,7 +41,6 @@ const LibraryScanner = require('./scanner/LibraryScanner')
|
|||||||
//Import the main Passport and Express-Session library
|
//Import the main Passport and Express-Session library
|
||||||
const passport = require('passport')
|
const passport = require('passport')
|
||||||
const expressSession = require('express-session')
|
const expressSession = require('express-session')
|
||||||
const MemoryStore = require('./libs/memorystore')(expressSession)
|
|
||||||
|
|
||||||
class Server {
|
class Server {
|
||||||
constructor(SOURCE, PORT, HOST, CONFIG_PATH, METADATA_PATH, ROUTER_BASE_PATH) {
|
constructor(SOURCE, PORT, HOST, CONFIG_PATH, METADATA_PATH, ROUTER_BASE_PATH) {
|
||||||
@ -219,12 +218,7 @@ class Server {
|
|||||||
cookie: {
|
cookie: {
|
||||||
// also send the cookie if were are not on https (not every use has https)
|
// also send the cookie if were are not on https (not every use has https)
|
||||||
secure: false
|
secure: false
|
||||||
},
|
}
|
||||||
store: new MemoryStore({
|
|
||||||
checkPeriod: 86400000, // prune expired entries every 24h
|
|
||||||
ttl: 86400000, // 24h
|
|
||||||
max: 1000
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
// init passport.js
|
// init passport.js
|
||||||
|
Loading…
Reference in New Issue
Block a user