mirror of
https://github.com/zadam/trilium.git
synced 2024-12-26 01:01:26 +08:00
store trilium sessions in default OS temp directory
This commit is contained in:
parent
b9de810c69
commit
4409485ca1
1 changed files with 2 additions and 1 deletions
3
app.js
3
app.js
|
@ -7,6 +7,7 @@ const bodyParser = require('body-parser');
|
|||
const helmet = require('helmet');
|
||||
const session = require('express-session');
|
||||
const FileStore = require('session-file-store')(session);
|
||||
const os = require('os');
|
||||
|
||||
const indexRoute = require('./routes/index');
|
||||
const loginRoute = require('./routes/login');
|
||||
|
@ -53,7 +54,7 @@ app.use(session({
|
|||
},
|
||||
store: new FileStore({
|
||||
ttl: 30 * 24 * 3600,
|
||||
path: '../trilium-data/sessions'
|
||||
path: os.tmpdir() + '/trilium-sessions'
|
||||
})
|
||||
}));
|
||||
|
||||
|
|
Loading…
Reference in a new issue