mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: add rate limit : a user can update 25 domains per day
This commit is contained in:
@@ -8,6 +8,11 @@ framework:
|
||||
|
||||
#esi: true
|
||||
#fragments: true
|
||||
rate_limiter:
|
||||
authenticated_api:
|
||||
policy: 'sliding_window'
|
||||
limit: 25
|
||||
interval: '1 day'
|
||||
|
||||
when@test:
|
||||
framework:
|
||||
|
||||
2
config/packages/lock.yaml
Normal file
2
config/packages/lock.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
framework:
|
||||
lock: '%env(LOCK_DSN)%'
|
||||
Reference in New Issue
Block a user