mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
changed cookie name from hard coded to be config option, defaults to sharelatex.sid
This commit is contained in:
parent
c51c0c1cf2
commit
04e50f8ba6
2 changed files with 2 additions and 1 deletions
|
@ -32,7 +32,7 @@ else
|
|||
|
||||
app = express()
|
||||
|
||||
cookieKey = "sharelatex.sid"
|
||||
cookieKey = Settings.cookieName
|
||||
cookieSessionLength = 5 * oneDayInMilliseconds
|
||||
|
||||
csrf = express.csrf()
|
||||
|
|
|
@ -111,6 +111,7 @@ module.exports =
|
|||
# use full domain for cookies to only be accesabble from that domain,
|
||||
# replace subdomain with dot to have them accessable on all subdomains
|
||||
# cookieDomain: ".sharelatex.dev"
|
||||
cookieName:"sharelatex.sid"
|
||||
|
||||
# Same, but with http auth credentials.
|
||||
httpAuthSiteUrl: 'http://#{httpAuthUser}:#{httpAuthPass}@localhost:3000'
|
||||
|
|
Loading…
Reference in a new issue