mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
allow admin abuse
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user