Skip to content

Commit

Permalink
Increase rate limit (authenticated)
Browse files Browse the repository at this point in the history
  • Loading branch information
nzws committed Oct 11, 2024
1 parent ca74392 commit 6f9fcb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/rack_attack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def paging_request?
req.authenticated_user_id if req.api_request?
end

throttle('throttle_per_token_api', limit: 300, period: 5.minutes) do |req|
throttle('throttle_per_token_api', limit: 1_000, period: 5.minutes) do |req|
req.authenticated_token_id if req.api_request?
end

Expand Down

0 comments on commit 6f9fcb1

Please sign in to comment.