[JAVA-26731] Upgraded bucket4j-spring-boot-starter version

This commit is contained in:
panos-kakos
2023-11-14 07:30:13 +02:00
parent 21eb70547f
commit b38b5327fd
2 changed files with 10 additions and 6 deletions
@@ -21,19 +21,19 @@ bucket4j:
url: /api/v1/area.*
http-response-body: "{ \"status\": 429, \"error\": \"Too Many Requests\", \"message\": \"You have exhausted your API Request Quota\" }"
rate-limits:
- expression: "getHeader('X-api-key')"
- cache-key: "getHeader('X-api-key')"
execute-condition: "getHeader('X-api-key').startsWith('PX001-')"
bandwidths:
- capacity: 100
time: 1
unit: hours
- expression: "getHeader('X-api-key')"
- cache-key: "getHeader('X-api-key')"
execute-condition: "getHeader('X-api-key').startsWith('BX001-')"
bandwidths:
- capacity: 40
time: 1
unit: hours
- expression: "getHeader('X-api-key')"
- cache-key: "getHeader('X-api-key')"
bandwidths:
- capacity: 20
time: 1