From ca2af0af32a0ad35d45b9406f1b7089fb936471d Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Mon, 3 Dec 2018 14:05:03 +0000 Subject: [PATCH] make cookies configurable via env vars --- services/real-time/config/settings.defaults.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/real-time/config/settings.defaults.coffee b/services/real-time/config/settings.defaults.coffee index 8d087c4a14..485789cb12 100644 --- a/services/real-time/config/settings.defaults.coffee +++ b/services/real-time/config/settings.defaults.coffee @@ -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 \ No newline at end of file