Skip to content

Commit

Permalink
Merge pull request #132 from Sahil-tarento/cbrelease-4.0.2-dev
Browse files Browse the repository at this point in the history
Dev #104404 Enrolling into Curated Program
  • Loading branch information
Haritest authored Sep 20, 2023
2 parents 4a19921 + 7489542 commit 8a45b9d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ansible/roles/kong-api/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ mdo_content_prefix: /mdo/content
master_data_service_prefix: /masterData
blended_program_service_prefix: /blendedprogram
faq_assistant_service_prefix: /faq
curated_program_prefix: /curatedprogram

# Service URLs
knowledge_mw_service_url: "http://knowledge-mw-service:5000"
Expand Down Expand Up @@ -10121,3 +10122,21 @@ kong_apis:
config.limit_by: ip
- name: request-size-limiting
config.allowed_payload_size: "{{ small_request_size_limit }}"

- name: curatedProgramEnrolment
uris: "{{ curated_program_prefix }}/v1/enrol"
upstream_url: "{{ lms_service_url }}/v1/program/enroll"
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: "{{ small_request_size_limit }}"

0 comments on commit 8a45b9d

Please sign in to comment.