mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 03:56:21 +08:00
SECURITY: add rate limiting to anon JS error reporting
This adds a 1 minute rate limit to all JS error reporting per IP. Previously we would only use the global rate limit. This also introduces DISCOURSE_ENABLE_JS_ERROR_REPORTING, if it is set to false then no JS error reporting will be allowed on the site.
This commit is contained in:
@ -104,6 +104,7 @@ Logster.config.subdirectory = "#{GlobalSetting.relative_url_root}/logs"
|
||||
|
||||
Logster.config.application_version = Discourse.git_version
|
||||
Logster.config.enable_custom_patterns_via_ui = true
|
||||
Logster.config.enable_js_error_reporting = GlobalSetting.enable_js_error_reporting
|
||||
|
||||
store = Logster.store
|
||||
redis = Logster.store.redis
|
||||
|
Reference in New Issue
Block a user