From fe0a4d5991c0e59ed58e0797e1389a2509ecb7d1 Mon Sep 17 00:00:00 2001 From: garrettmills Date: Thu, 29 Oct 2020 08:46:30 -0500 Subject: [PATCH] Update libflitter and set session max age --- config/server.config.js | 7 ++++++- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/config/server.config.js b/config/server.config.js index cc8f477..d7838af 100644 --- a/config/server.config.js +++ b/config/server.config.js @@ -35,7 +35,12 @@ const server_config = { * The secret used to encrypt the session. * This should be set in the environment. */ - secret: env("SECRET", "changeme") + secret: env("SECRET", "changeme"), + + /* + * The max age of a session in milliseconds + */ + max_age: env("SESSION_MAX_AGE", 1000 * 60 * 60 * 24 * 2), // default to 2 days }, uploads: { diff --git a/package.json b/package.json index 977c7fe..476c806 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "ioredis": "^4.17.1", "is-absolute-url": "^3.0.3", "ldapjs": "^1.0.2", - "libflitter": "^0.56.1", + "libflitter": "^0.57.0", "moment": "^2.24.0", "mongodb": "^3.5.9", "nodemailer": "^6.4.6", diff --git a/yarn.lock b/yarn.lock index 2246f82..f65ff13 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3235,10 +3235,10 @@ leven@^1.0.2: resolved "https://registry.yarnpkg.com/leven/-/leven-1.0.2.tgz#9144b6eebca5f1d0680169f1a6770dcea60b75c3" integrity sha1-kUS27ryl8dBoAWnxpncNzqYLdcM= -libflitter@^0.56.1: - version "0.56.1" - resolved "https://registry.yarnpkg.com/libflitter/-/libflitter-0.56.1.tgz#250166027b9cab727c9deb6b1fa1865428b1eafb" - integrity sha512-QikFtFRa9okKOjOio5ehpQ6hyacCoMbtOlqcXt4I7uU3lntBeP5qSbz1q3x1wUY/AdBc2k70+Eg8BcpGmBEs4Q== +libflitter@^0.57.0: + version "0.57.0" + resolved "https://registry.yarnpkg.com/libflitter/-/libflitter-0.57.0.tgz#4383d188c4db5b36a5c684874b901ad964f1f721" + integrity sha512-0yj9tXg5OW7C+sIdRm7ygw+kezaKaYrhvfONCKzqGn9gcUY7HGigALieSIaWuXnj7A+fn6e69gOyFnmwxwuZVQ== dependencies: colors "^1.3.3" connect-mongodb-session "^2.2.0"