Skip to content

Commit

Permalink
Looser ratelimits for people logged
Browse files Browse the repository at this point in the history
  • Loading branch information
Ember-ruby committed Mar 2, 2025
1 parent 98fca71 commit f56ff84
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 @@ -90,7 +90,7 @@ def paging_request?
req.throttleable_remote_ip if req.post? && req.path == '/api/v1/accounts'
end

throttle('throttle_authenticated_paging', limit: 600, period: 15.minutes) do |req|
throttle('throttle_authenticated_paging', limit: 600, period: 10.minutes) do |req|
req.authenticated_user_id if req.paging_request?
end

Expand Down

0 comments on commit f56ff84

Please sign in to comment.