diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 591b65e736..2eb38272c0 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -94,6 +94,7 @@ master_data_service_prefix: /masterData blended_program_service_prefix: /blendedprogram faq_assistant_service_prefix: /faq curated_program_prefix: /curatedprogram +program_prefix: /program # Service URLs knowledge_mw_service_url: "http://knowledge-mw-service:5000" @@ -10303,3 +10304,21 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ small_request_size_limit }}" + + - name: programAdminEnrolment + uris: "{{ program_prefix }}/v1/admin/enrol" + upstream_url: "{{ lms_service_url }}/v1/program/admin/enroll" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'courseAccess' + - 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 }}"