From 4409485ca1b2c61ef81a1519405d217438d18ec1 Mon Sep 17 00:00:00 2001 From: azivner Date: Mon, 23 Oct 2017 22:36:18 -0400 Subject: [PATCH] store trilium sessions in default OS temp directory --- app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 1511491e0..24da2ef12 100644 --- a/app.js +++ b/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' }) }));