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:
2020-10-29 08:58:37 -05:00
parent 6c6f932bdb
commit 135f55f9c2
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: {