From 2029de4cc5ce2e4f45ae6c18e78ade6f48ee7805 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 21 Apr 2017 23:56:24 -0400 Subject: [PATCH] closes #5449 --- src/database/redis.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/database/redis.js b/src/database/redis.js index acc2541af6..a19c207993 100644 --- a/src/database/redis.js +++ b/src/database/redis.js @@ -80,6 +80,8 @@ redisModule.connect = function (options) { options.auth_pass = nconf.get('redis:password'); } + options = _.deepExtend(options, nconf.get('redis:options') || {}); + if (redis_socket_or_host && redis_socket_or_host.indexOf('/') >= 0) { /* If redis.host contains a path name character, use the unix dom sock connection. ie, /tmp/redis.sock */ cxn = redis.createClient(nconf.get('redis:host'), options);