make cookies configurable via env vars

This commit is contained in:
Henry Oswald 2018-12-03 14:05:03 +00:00
parent bbc11ae1b5
commit ca2af0af32

View file

@ -36,8 +36,8 @@ module.exports =
url: "http://#{process.env['DOCUMENT_UPDATER_HOST'] or process.env['DOCUPDATER_HOST'] or "localhost"}:3003"
security:
sessionSecret: "secret-please-change"
sessionSecret: process.env['SESSION_SECRET'] or "secret-please-change"
cookieName: "sharelatex.sid"
cookieName: process.env['COOKIE_NAME'] or "sharelatex.sid"
max_doc_length: 2 * 1024 * 1024 # 2mb