Updating rate limits to also use TOML
This commit is contained in:
29
config/dev/ratelimit.auth.toml
Normal file
29
config/dev/ratelimit.auth.toml
Normal file
@@ -0,0 +1,29 @@
|
||||
[[Rules]]
|
||||
# Global Ratelimit
|
||||
match = ""
|
||||
seconds = 60
|
||||
max = 30
|
||||
|
||||
[[Rules]]
|
||||
# One DPS (Doot Per Second) for monitoring
|
||||
match = "GET:/v1/sec/doot"
|
||||
seconds = 5
|
||||
max = 30
|
||||
|
||||
[[Rules]]
|
||||
# 2FA doot probably doesn't need much usage at all, mainly exists as a proof of concept.
|
||||
match = "GET:/v1/sec/2fa-doot"
|
||||
seconds = 10
|
||||
max = 1
|
||||
|
||||
[[Rules]]
|
||||
# One Admin DPS (Doot Per Second) for monitoring
|
||||
match = "GET:/v1/adm/doot"
|
||||
seconds = 5
|
||||
max = 3
|
||||
|
||||
[[Rules]]
|
||||
# 2FA doot probably doesn't need much usage at all, mainly exists as a proof of concept.
|
||||
match = "GET:/v1/adm/2fa-doot"
|
||||
seconds = 10
|
||||
max = 1
|
||||
Reference in New Issue
Block a user