mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
Allow session length to be configured using SHARELATEX_COOKIE_SESSION_LENGTH (#15018)
GitOrigin-RevId: abbe31e1511afc9a9071c0bed58f73cb214cd0b4
This commit is contained in:
parent
20e7d73b19
commit
6be4ae4739
1 changed files with 6 additions and 0 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue