update config to take explicit redis configs

This commit is contained in:
Henry Oswald 2018-12-05 14:42:16 +00:00
parent cdf605e171
commit 5ad7482385

View file

@ -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: