diff --git a/app/models/global_setting.rb b/app/models/global_setting.rb index c81430d2cd5..67320ee5e8c 100644 --- a/app/models/global_setting.rb +++ b/app/models/global_setting.rb @@ -152,6 +152,7 @@ class GlobalSetting c[:password] = redis_password if redis_password.present? c[:db] = redis_db if redis_db != 0 c[:db] = 1 if Rails.env == "test" + c[:id] = nil if redis_skip_client_commands c.freeze end diff --git a/config/discourse_defaults.conf b/config/discourse_defaults.conf index 2957af97e6e..1b5fba60734 100644 --- a/config/discourse_defaults.conf +++ b/config/discourse_defaults.conf @@ -117,6 +117,8 @@ redis_db = 0 # redis password redis_password = +# skip configuring client id for cloud providers who support no client commands +redis_skip_client_commands = false # enable Cross-origin Resource Sharing (CORS) directly at the application level enable_cors = false