FEATURE: Option to connect to Redis using SSL
This commit is contained in:
parent
d4fc76b335
commit
54f67661ac
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue