feat: Update rack attack IP limit (#7866)

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Shivam Mishra
2023-09-06 18:56:42 +05:30
committed by GitHub
parent 52e49d5f9d
commit 5c74674c2b
2 changed files with 3 additions and 1 deletions

View File

@@ -46,7 +46,7 @@ class Rack::Attack
#
# Key: "rack::attack:#{Time.now.to_i/:period}:req/ip:#{req.ip}"
throttle('req/ip', limit: 300, period: 1.minute, &:ip)
throttle('req/ip', limit: ENV.fetch('RACK_ATTACK_LIMIT', 3000), period: 1.minute, &:ip)
###-----------------------------------------------###
###-----Authentication Related Throttling---------###