2025-02-27 15:11:37 +00:00
|
|
|
image:
|
|
|
|
repository: envoyproxy/ratelimit
|
|
|
|
# see: https://hub.docker.com/r/envoyproxy/ratelimit/tags
|
|
|
|
tag: 80b15778
|
|
|
|
|
2025-02-26 15:39:09 +00:00
|
|
|
log:
|
|
|
|
level: warn
|
|
|
|
format: json
|
|
|
|
|
|
|
|
# 1MB local cache for already reached limits to reduce calls to Redis
|
|
|
|
localCacheSize: 1048576
|
|
|
|
|
|
|
|
# Wether to block requests if ratelimiting is down
|
|
|
|
failureModeDeny: false
|
|
|
|
|
2025-02-27 15:11:37 +00:00
|
|
|
# rate limit descriptors for each domain
|
|
|
|
# - slow: 1 req/s over a minute per sourceIP
|
2025-02-26 15:39:09 +00:00
|
|
|
descriptors:
|
|
|
|
ingress:
|
2025-02-27 15:11:37 +00:00
|
|
|
- key: speed
|
|
|
|
value: slow
|
|
|
|
descriptors:
|
|
|
|
- key: remote_address
|
|
|
|
rate_limit:
|
|
|
|
unit: minute
|
|
|
|
requests_per_unit: 60
|
2025-02-26 15:39:09 +00:00
|
|
|
|
|
|
|
privateIngress:
|
2025-02-27 15:11:37 +00:00
|
|
|
- key: speed
|
|
|
|
value: slow
|
|
|
|
descriptors:
|
|
|
|
- key: remote_address
|
|
|
|
rate_limit:
|
|
|
|
unit: minute
|
|
|
|
requests_per_unit: 60
|
2025-02-26 15:39:09 +00:00
|
|
|
|
|
|
|
metrics:
|
2025-02-27 15:11:37 +00:00
|
|
|
enabled: false
|