FEATURE: allow use of redis sentinel via redis_sentinels

Use: DISCOURSE_REDIS_SENTINELS and DISCOURSE_REDIS_HOST to configure redis
sentinel
This commit is contained in:
Sam
2015-06-25 16:51:48 +10:00
parent 18f887772d
commit 8252f4e110
10 changed files with 30 additions and 90 deletions

View File

@@ -354,7 +354,9 @@ module Discourse
end
def self.sidekiq_redis_config
{ url: $redis.url, namespace: 'sidekiq' }
conf = GlobalSetting.redis_config.dup
conf[:namespace] = 'sidekiq'
conf
end
def self.static_doc_topic_ids