Skip to content

Commit

Permalink
Merge pull request #2835 from amvanbaren/test-bucket4j
Browse files Browse the repository at this point in the history
test bucket4j
  • Loading branch information
amvanbaren authored Aug 13, 2024
2 parents 4f9603c + c840235 commit db5d7b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions configuration/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ bucket4j:
Access-Control-Allow-Origin: '*'
Access-Control-Expose-Headers: X-Rate-Limit-Retry-After-Seconds, X-Rate-Limit-Remaining
rate-limits:
- cache-key: getRemoteAddr()
- cache-key: '(getHeader("X-Forwarded-For")?: getRemoteAddr()).split(",")[0].trim()'
bandwidths:
- capacity: 75
time: 1
Expand All @@ -125,7 +125,7 @@ bucket4j:
Access-Control-Allow-Origin: '*'
Access-Control-Expose-Headers: X-Rate-Limit-Retry-After-Seconds, X-Rate-Limit-Remaining
rate-limits:
- cache-key: getRemoteAddr()
- cache-key: '(getHeader("X-Forwarded-For")?: getRemoteAddr()).split(",")[0].trim()'
bandwidths:
- capacity: 15
time: 1
Expand All @@ -143,7 +143,7 @@ bucket4j:
time: 1
unit: seconds
- execute-condition: getParameter("token") == null
cache-key: getRemoteAddr()
cache-key: '(getHeader("X-Forwarded-For")?: getRemoteAddr()).split(",")[0].trim()'
bandwidths:
- capacity: 15
time: 1
Expand Down

0 comments on commit db5d7b2

Please sign in to comment.