A platform for community discussion. Free, open, simple.
FEATURE: add setting to bypass sending redis CLIENT commands
Sam8b7a2d1cb725
diff --git a/app/models/global_setting.rb b/app/models/global_setting.rbindex c81430d2cd5..67320ee5e8c 100644--- a/app/models/global_setting.rb+++ b/app/models/global_setting.rb@@ -152,6 +152,7 @@ class GlobalSettingc[:password] = redis_password if redis_password.present?c[:db] = redis_db if redis_db != 0c[:db] = 1 if Rails.env == "test"+ c[:id] = nil if redis_skip_client_commandsc.freezeenddiff --git a/config/discourse_defaults.conf b/config/discourse_defaults.confindex 2957af97e6e..1b5fba60734 100644--- a/config/discourse_defaults.conf+++ b/config/discourse_defaults.conf@@ -117,6 +117,8 @@ redis_db = 0# redis passwordredis_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 levelenable_cors = false