Skip to content

Commit ce80c29

Browse files
committed
Merge branch 'master' of github.com:travis-ci/travis-api
2 parents 58cf6f3 + c1d0511 commit ce80c29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/travis/api/attack.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ def self.bantime(value)
8888
####
8989
# Ban based on: IP address or access token
9090
# Ban time: 1 hour
91-
# Ban after: 10 POST requests within 30 seconds
91+
# Ban after: 50 POST requests within 30 seconds
9292
blocklist('spamming_post_requests') do |request|
93-
Rack::Attack::Allow2Ban.filter(request.identifier, maxretry: 10, findtime: 30.seconds, bantime: bantime(1.hour)) do
93+
Rack::Attack::Allow2Ban.filter(request.identifier, maxretry: 50, findtime: 30.seconds, bantime: bantime(1.hour)) do
9494
request.post? and not POST_SAFELIST.include? request.path
9595
end
9696
end

0 commit comments

Comments
 (0)