Set session max age to 2 days by default
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
Garrett Mills 2020-10-29 08:58:37 -05:00
parent 6c6f932bdb
commit 135f55f9c2
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246
3 changed files with 11 additions and 6 deletions

View File

@ -33,7 +33,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"),
/*
* Time in ms of the max age of the session cookie.
*/
max_age: env("SESSION_MAX_AGE", 1000 * 24 * 60 * 60 * 2), // 2 days by default
},
uploads: {

View File

@ -25,7 +25,7 @@
"flitter-orm": "^0.4.0",
"flitter-upload": "^0.8.1",
"jsonwebtoken": "^8.5.1",
"libflitter": "^0.56.0",
"libflitter": "^0.57.1",
"markdown": "^0.5.0",
"ncp": "^2.0.0",
"rimraf": "^3.0.2",

View File

@ -2455,10 +2455,10 @@ leven@^1.0.2:
resolved "https://registry.yarnpkg.com/leven/-/leven-1.0.2.tgz#9144b6eebca5f1d0680169f1a6770dcea60b75c3"
integrity sha1-kUS27ryl8dBoAWnxpncNzqYLdcM=
libflitter@^0.56.0:
version "0.56.0"
resolved "https://registry.yarnpkg.com/libflitter/-/libflitter-0.56.0.tgz#1ff04b7749d55e7a011149b8a6cae561b8e800d8"
integrity sha512-AwCmTZaKPOQqDWiASvxMuWaexBYxuKpY/QMVnrVdW/VXT5eW0rIf+bJy6RdQGiH8GzlB3442+U4yl4VWNfeKsQ==
libflitter@^0.57.1:
version "0.57.1"
resolved "https://registry.yarnpkg.com/libflitter/-/libflitter-0.57.1.tgz#e605333a5e38cadac1203e4be8ea685c5520472b"
integrity sha512-bEu02HZjcAp53A2xnE0hz/LVhkErvnqaKmlNOqvJJaGMjKClfVuqJlr9bFfWU84qXL9SaHWd06P3nxIVKTvFIw==
dependencies:
colors "^1.3.3"
connect-mongodb-session "^2.2.0"