Updating rate limits to also use TOML

This commit is contained in:
🐙PiperYxzzy
2025-10-13 20:53:49 +02:00
parent acd23c2f45
commit ff15c7a65f
9 changed files with 138 additions and 79 deletions

View 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