about summary refs log tree commit diff
path: root/config/initializers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-11-29 00:44:11 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-11-29 00:44:11 +0100
commitc0555f2db6b04edfbf829696648ec3998cef9365 (patch)
treebf440026fe167fa5e1d5a62ddf40759b8b8a8bfd /config/initializers
parent4e351baf88b3ee421b9a65fc4418b3729da15413 (diff)
Don't rate-limit PuSH endpoints
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/rack-attack.rb2
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|