Skip to content

Commit

Permalink
example rate limit per user
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelSavignano committed Sep 28, 2023
1 parent c6ce947 commit 0c73e52
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions kong.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
_format_version: "2.1"
services:
- name: httpbin
url: https://httpbin.org/anything
url: https://httpbin.org
routes:
- name: httpbin-route
paths:
- /anything
- /*
plugins:
- name: jwt-claims
config:
jwt_token_header: x-jwt-token-decoded
claim_header_prefix: x-jwt-claim-
jwt_token_header: X-Jwt-Token-Decoded
claim_header_prefix: X-Jwt-Claim-
debug: true

- name: rate-limiting
config:
minute: 3
policy: local
limit_by: header
header_name: X-Jwt-Claim-User-Id

0 comments on commit 0c73e52

Please sign in to comment.