Skip to content

Commit db721cc

Browse files
authored
Merge pull request #2500 from FarmBot/copilot/fix-bf625bd5-05b1-43bd-88c8-5fd10a0c728a
Increase demo account IP throttling limit to 50 requests per hour to accommodate classrooms
2 parents 55bb95e + ec07b07 commit db721cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/initializers/rack_attack.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Rack::Attack
2727
end
2828

2929
### Don't allow too many demo account requests ###
30-
throttle("demo_accounts/ip", limit: 10, period: 10.minutes) do |req|
30+
throttle("demo_accounts/ip", limit: 50, period: 1.hour) do |req|
3131
case req.path.downcase
3232
when "/demo", "/try_farmbot"
3333
req.ip

0 commit comments

Comments
 (0)