FEATURE: Option to connect to Redis using SSL

This commit is contained in:
Rafael dos Santos Silva 2020-03-05 19:21:38 -03:00
parent d4fc76b335
commit 54f67661ac
2 changed files with 5 additions and 0 deletions

View File

@ -172,6 +172,7 @@ class GlobalSetting
c[:db] = redis_db if redis_db != 0
c[:db] = 1 if Rails.env == "test"
c[:id] = nil if redis_skip_client_commands
c[:ssl] = true if redis_use_ssl
c.freeze
end
@ -195,6 +196,7 @@ class GlobalSetting
c[:db] = message_bus_redis_db if message_bus_redis_db != 0
c[:db] = 1 if Rails.env == "test"
c[:id] = nil if message_bus_redis_skip_client_commands
c[:ssl] = true if redis_use_ssl
c.freeze
end

View File

@ -120,6 +120,9 @@ redis_password =
# skip configuring client id for cloud providers who support no client commands
redis_skip_client_commands = false
# uses SSL for all Redis connections if true
redis_use_ssl = false
# message bus redis server switch
message_bus_redis_enabled = false