mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-20 00:35:22 +00:00
admin api rate limits (#745)
This commit is contained in:
parent
aee56d48ce
commit
c0133f7edd
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ class Rack::Attack
|
|||
!req.cloudflare?
|
||||
end
|
||||
|
||||
Rack::Attack.safelist("admin abooze") do |req|
|
||||
Rack::Attack.throttle("admin abooze", limit: 5, period: 1.second) do |req|
|
||||
req.path.start_with?("/api/admin/")
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue