mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-22 12:15:32 +00:00
refactor: move to rate_limiter.yaml
This commit is contained in:
parent
8d741422ad
commit
18886609ff
@ -8,11 +8,6 @@ framework:
|
|||||||
|
|
||||||
#esi: true
|
#esi: true
|
||||||
#fragments: true
|
#fragments: true
|
||||||
rate_limiter:
|
|
||||||
authenticated_api:
|
|
||||||
policy: 'sliding_window'
|
|
||||||
limit: 25
|
|
||||||
interval: '1 day'
|
|
||||||
assets:
|
assets:
|
||||||
base_path: '/'
|
base_path: '/'
|
||||||
packages:
|
packages:
|
||||||
|
|||||||
26
config/packages/rate_limiter.yaml
Normal file
26
config/packages/rate_limiter.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
framework:
|
||||||
|
rate_limiter:
|
||||||
|
authenticated_api:
|
||||||
|
policy: 'sliding_window'
|
||||||
|
limit: 25
|
||||||
|
interval: '1 day'
|
||||||
|
|
||||||
|
username_ip_login:
|
||||||
|
policy: token_bucket
|
||||||
|
limit: 5
|
||||||
|
rate: { interval: '5 minutes' }
|
||||||
|
|
||||||
|
ip_login:
|
||||||
|
policy: sliding_window
|
||||||
|
limit: 50
|
||||||
|
interval: '15 minutes'
|
||||||
|
|
||||||
|
user_register:
|
||||||
|
policy: token_bucket
|
||||||
|
limit: 1
|
||||||
|
rate: { interval: '5 minutes' }
|
||||||
|
|
||||||
|
rdap_requests:
|
||||||
|
policy: sliding_window
|
||||||
|
limit: 10
|
||||||
|
interval: '1 hour'
|
||||||
@ -1,25 +1,3 @@
|
|||||||
framework:
|
|
||||||
rate_limiter:
|
|
||||||
username_ip_login:
|
|
||||||
policy: token_bucket
|
|
||||||
limit: 5
|
|
||||||
rate: { interval: '5 minutes' }
|
|
||||||
|
|
||||||
ip_login:
|
|
||||||
policy: sliding_window
|
|
||||||
limit: 50
|
|
||||||
interval: '15 minutes'
|
|
||||||
|
|
||||||
user_register:
|
|
||||||
policy: token_bucket
|
|
||||||
limit: 1
|
|
||||||
rate: { interval: '5 minutes' }
|
|
||||||
|
|
||||||
rdap_requests:
|
|
||||||
policy: sliding_window
|
|
||||||
limit: 10
|
|
||||||
interval: '1 hour'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app.login_rate_limiter:
|
app.login_rate_limiter:
|
||||||
class: Symfony\Component\Security\Http\RateLimiter\DefaultLoginRateLimiter
|
class: Symfony\Component\Security\Http\RateLimiter\DefaultLoginRateLimiter
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user