diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-29 00:44:11 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-29 00:44:11 +0100 |
commit | c0555f2db6b04edfbf829696648ec3998cef9365 (patch) | |
tree | bf440026fe167fa5e1d5a62ddf40759b8b8a8bfd /config | |
parent | 4e351baf88b3ee421b9a65fc4418b3729da15413 (diff) |
Don't rate-limit PuSH endpoints
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/rack-attack.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/rack-attack.rb b/config/initializers/rack-attack.rb index 0e96f5381..3f0ee1d7a 100644 --- a/config/initializers/rack-attack.rb +++ b/config/initializers/rack-attack.rb @@ -1,7 +1,7 @@ class Rack::Attack # Rate limits for the API throttle('api', limit: 150, period: 5.minutes) do |req| - req.ip if req.path.match(/\A\/api\//) + req.ip if req.path.match(/\A\/api\/v/) end self.throttled_response = lambda do |env| |