Change the API call limit from 600 to 1200

This commit is contained in:
noellabo 2023-02-09 19:31:24 +09:00
parent b2e0d39a04
commit 0a01d76da3
1 changed files with 1 additions and 1 deletions

View File

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