feat: add rate limit : a user can update 25 domains per day

This commit is contained in:
Maël Gangloff
2024-07-21 14:56:10 +02:00
parent b45bbe63f5
commit 43c4c9a33d
8 changed files with 200 additions and 18 deletions

View File

@@ -8,6 +8,11 @@ framework:
#esi: true
#fragments: true
rate_limiter:
authenticated_api:
policy: 'sliding_window'
limit: 25
interval: '1 day'
when@test:
framework:

View File

@@ -0,0 +1,2 @@
framework:
lock: '%env(LOCK_DSN)%'