allow admin abuse

This commit is contained in:
Echo 2025-08-03 23:55:39 -04:00
parent 64549d5aaf
commit 41ad3e3960
No known key found for this signature in database
GPG key ID: A1263DC479EDB62F

View file

@ -31,6 +31,10 @@ class Rack::Attack
false
end
Rack::Attack.safelist("admin abooze") do |req|
req.path.start_with?("/api/admin/")
end
Rack::Attack.throttle("general", limit: 300, period: 1.minute) do |req|
req.ip unless req.path.start_with?("/assets")
end