mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-20 00:35:22 +00:00
allow admin abuse
This commit is contained in:
parent
64549d5aaf
commit
41ad3e3960
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue