mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-09 09:42:28 +08:00
feat(session_parser): use Session.cookieMaxAge from config
This commit is contained in:
parent
53576f5578
commit
4e23b5193d
@ -12,7 +12,7 @@ const sessionParser = session({
|
|||||||
cookie: {
|
cookie: {
|
||||||
path: config.Session.cookiePath,
|
path: config.Session.cookiePath,
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
maxAge: 24 * 60 * 60 * 1000 // in milliseconds
|
maxAge: config.Session.cookieMaxAge
|
||||||
},
|
},
|
||||||
name: "trilium.sid",
|
name: "trilium.sid",
|
||||||
store: new FileStore({
|
store: new FileStore({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user