Skip to content

Commit

Permalink
KB-5808 | Q5 | Enhancement | MDO Channel | A consolidated level lear…
Browse files Browse the repository at this point in the history
…ner leaderboard based on Karma Points.

1. Added kong entry for the top10learners API to redirect to the cbext-service.
  • Loading branch information
tarentomaheshvakkund committed Jul 18, 2024
1 parent 5ab0302 commit 2c5402e
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion ansible/roles/kong-api/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16337,4 +16337,23 @@ kong_apis:
config.hour: "{{ medium_rate_limit_per_hour }}"
config.limit_by: credential
- name: request-size-limiting
config.allowed_payload_size: "{{ medium_request_size_limit }}"
config.allowed_payload_size: "{{ medium_request_size_limit }}"

- name: top10learners
uris: "/halloffame/top/learners"
upstream_url: "{{ sb_cb_ext_service_url }}/v1/top/learners
strip_uri: true
plugins:
- name: jwt
- name: cors
- "{{ statsd_pulgin }}"
- name: acl
config.whitelist:
- 'dataAccess'
- name: rate-limiting
config.policy: local
config.hour: "{{ medium_rate_limit_per_hour }}"
config.limit_by: credential
- name: request-size-limiting
config.allowed_payload_size: "{{ medium_request_size_limit }}"

0 comments on commit 2c5402e

Please sign in to comment.