increase throttle limit for authenticated requests

This commit is contained in:
carlad 2015-09-18 09:58:34 +02:00
parent e40e6d3fe9
commit 9f2b880f83

View File

@ -43,9 +43,9 @@ class Rack::Attack
end end
### ###
# Throttle: authenticated requests - 100 per minute # Throttle: authenticated requests - 200 per minute
# Scoped by: access token # Scoped by: access token
throttle('req/token/1min', limit: 100, period: 1.minute) do |request| throttle('req/token/1min', limit: 200, period: 1.minute) do |request|
request.identifier request.identifier
end end