Set session max age to 2 days by default
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user