Allow session length to be configured using SHARELATEX_COOKIE_SESSION_LENGTH (#15018)

GitOrigin-RevId: abbe31e1511afc9a9071c0bed58f73cb214cd0b4
This commit is contained in:
Alf Eaton 2023-09-28 10:38:24 +01:00 committed by Copybot
parent 20e7d73b19
commit 6be4ae4739

View file

@ -229,6 +229,12 @@ const settings = {
behindProxy: process.env.SHARELATEX_BEHIND_PROXY || false,
trustedProxyIps: process.env.SHARELATEX_TRUSTED_PROXY_IPS,
// The amount of time, in milliseconds, until the (rolling) cookie session expires
cookieSessionLength: parseInt(
process.env.SHARELATEX_COOKIE_SESSION_LENGTH || 5 * 24 * 60 * 60 * 1000, // default 5 days
10
),
i18n: {
subdomainLang: {
www: {