From 5ad7482385e162657728e6bf5ed8f14e7ec208d2 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Wed, 5 Dec 2018 14:42:16 +0000 Subject: [PATCH] update config to take explicit redis configs --- .../real-time/config/settings.defaults.coffee | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/services/real-time/config/settings.defaults.coffee b/services/real-time/config/settings.defaults.coffee index bbe493956f..7839278b9e 100644 --- a/services/real-time/config/settings.defaults.coffee +++ b/services/real-time/config/settings.defaults.coffee @@ -1,24 +1,24 @@ module.exports = redis: realtime: - host: process.env['REDIS_HOST'] or "localhost" - port: process.env['REDIS_PORT'] or "6379" - password: process.env["REDIS_PASSWORD"] or "" + host: process.env['REAL_TIME_REDIS_HOST'] or process.env['REDIS_HOST'] or "localhost" + port: process.env['REAL_TIME_REDIS_PORT'] or process.env['REDIS_PORT'] or "6379" + password: process.env["REAL_TIME_REDIS_PASSWORD"] or process.env["REDIS_PASSWORD"] or "" key_schema: clientsInProject: ({project_id}) -> "clients_in_project:#{project_id}" connectedUser: ({project_id, client_id})-> "connected_user:#{project_id}:#{client_id}" documentupdater: - host: process.env['REDIS_HOST'] or "localhost" - port: process.env['REDIS_PORT'] or "6379" - password: process.env["REDIS_PASSWORD"] or "" + host: process.env['DOC_UPDATER_REDIS_HOST'] or process.env['REDIS_HOST'] or "localhost" + port: process.env['DOC_UPDATER_REDIS_PORT'] or process.env['REDIS_PORT'] or "6379" + password: process.env["DOC_UPDATER_REDIS_PASSWORD"] or process.env["REDIS_PASSWORD"] or "" key_schema: pendingUpdates: ({doc_id}) -> "PendingUpdates:#{doc_id}" websessions: - host: process.env['REDIS_HOST'] or "localhost" - port: process.env['REDIS_PORT'] or "6379" - password: process.env["REDIS_PASSWORD"] or "" + host: process.env['WEB_REDIS_HOST'] or process.env['REDIS_HOST'] or "localhost" + port: process.env['WEB_REDIS_PORT'] or process.env['REDIS_PORT'] or "6379" + password: process.env["WEB_REDIS_PASSWORD"] or process.env["REDIS_PASSWORD"] or "" internal: realTime: