Skip to content

Commit

Permalink
Merge pull request #53 from karthik-tarento/patch-26
Browse files Browse the repository at this point in the history
Using cb-ext APIs instead of learner
  • Loading branch information
Haritest authored Aug 26, 2022
2 parents be97090 + 28c2fb5 commit 2b393f1
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions ansible/roles/kong-api/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7547,7 +7547,7 @@ kong_apis:

- name: userAutoComplete
uris: "{{ user_service_prefix }}/v1/autocomplete"
upstream_url: "{{ learning_service_url }}/v1/user/autocomplete"
upstream_url: "{{ sb_cb_ext_service_url }}/user/v1/autocomplete"
strip_uri: true
plugins:
- name: jwt
Expand Down Expand Up @@ -7768,7 +7768,7 @@ kong_apis:

- name: privateUserMigrate
uris: "{{ user_service_prefix }}/private/v1/migrate"
upstream_url: "{{ learning_service_url }}/private/user/v1/migrate"
upstream_url: "{{ sb_cb_ext_service_url }}/user/v1/migrate"
strip_uri: true
plugins:
- name: jwt
Expand Down Expand Up @@ -8896,4 +8896,21 @@ kong_apis:
- name: request-size-limiting
config.allowed_payload_size: "{{ small_request_size_limit }}"

- name: searchUserPrivate
uris: "{{ learner_private_route_prefix }}/user/v1/search"
upstream_url: "{{ learning_service_url }}/private/user/v1/search"
strip_uri: true
plugins:
- name: jwt
- name: cors
- "{{ statsd_pulgin }}"
- name: acl
config.whitelist:
- 'userAccess'
- name: rate-limiting
config.policy: local
config.hour: "{{ small_rate_limit_per_hour }}"
config.limit_by: credential
- name: request-size-limiting
config.allowed_payload_size: "{{ small_request_size_limit }}"

0 comments on commit 2b393f1

Please sign in to comment.