From 79c934759c37e16e42cfa4ea16a015f21a9c1721 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Wed, 22 Apr 2020 14:04:28 +0100 Subject: [PATCH] add default redis settings for project history --- services/document-updater/config/settings.defaults.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/document-updater/config/settings.defaults.coffee b/services/document-updater/config/settings.defaults.coffee index f387a56122..0ced9eeedd 100755 --- a/services/document-updater/config/settings.defaults.coffee +++ b/services/document-updater/config/settings.defaults.coffee @@ -37,9 +37,9 @@ module.exports = docsWithHistoryOps: ({project_id}) -> "DocsWithHistoryOps:{#{project_id}}" project_history: - port: process.env["NEW_HISTORY_REDIS_PORT"] or "6379" - host: process.env["NEW_HISTORY_REDIS_HOST"] - password: process.env["NEW_HISTORY_REDIS_PASSWORD"] or "" + port: process.env["NEW_HISTORY_REDIS_PORT"] or process.env["REDIS_PORT"] or "6379" + host: process.env["NEW_HISTORY_REDIS_HOST"] or process.env["REDIS_HOST"] or "localhost" + password: process.env["NEW_HISTORY_REDIS_PASSWORD"] or process.env["REDIS_PASSWORD"] or "" maxRetriesPerRequest: parseInt(process.env['REDIS_MAX_RETRIES_PER_REQUEST'] or "20") key_schema: projectHistoryOps: ({project_id}) -> "ProjectHistory:Ops:{#{project_id}}"