Change the API call limit from 300 to 600

This commit is contained in:
noellabo 2021-09-16 15:36:25 +09:00
parent 01e006d79e
commit 7af54f7d79

View file

@ -46,7 +46,7 @@ class Rack::Attack
IpBlock.blocked?(req.remote_ip)
end
throttle('throttle_authenticated_api', limit: 300, period: 5.minutes) do |req|
throttle('throttle_authenticated_api', limit: 600, period: 5.minutes) do |req|
req.authenticated_user_id if req.api_request?
end