mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-24 06:35:37 +00:00
explicitly specify two weeks until i'm sure it's the default
This commit is contained in:
parent
999669a2fe
commit
1fa00fb658
1 changed files with 2 additions and 1 deletions
|
|
@ -32,6 +32,7 @@ store = derby.createStore
|
|||
listen: server
|
||||
|
||||
ONE_YEAR = 1000 * 60 * 60 * 24 * 365
|
||||
TWO_WEEKS = 1000 * 60 * 60 * 24 * 14
|
||||
root = path.dirname path.dirname __dirname
|
||||
publicPath = path.join root, 'public'
|
||||
|
||||
|
|
@ -71,7 +72,7 @@ mongo_store = new MongoStore {url: process.env.NODE_DB_URI}, ->
|
|||
.use(express.cookieParser())
|
||||
.use(store.sessionMiddleware
|
||||
secret: process.env.SESSION_SECRET || 'YOUR SECRET HERE'
|
||||
#cookie: {maxAge: ONE_YEAR} # defaults to 2 weeks, AFAIK - so just don't specify
|
||||
cookie: {maxAge: TWO_WEEKS} # defaults to 2 weeks? aka, can delete this line?
|
||||
store: mongo_store
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue