From 5f03f5c468f02c453fd4f8b56838d66eded75a1c Mon Sep 17 00:00:00 2001 From: ruksana2808 <111083125+ruksana2808@users.noreply.github.com> Date: Tue, 14 May 2024 22:23:05 +0530 Subject: [PATCH] kong for playList APIs --- ansible/roles/kong-api/defaults/main.yml | 57 +++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index fc8332f0d6..23eedeef3d 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -116,6 +116,7 @@ open_program_prefix: /openprogram calendar_prefix: /calendar careers_prefix: /careers demand_prefix: /demand +playlist_prefix: /playList # Service URLs knowledge_mw_service_url: "http://knowledge-mw-service:5000" @@ -13163,4 +13164,58 @@ kong_apis: config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" config.limit_by: credential - - name: request-size-limiting \ No newline at end of file + - name: request-size-limiting + + - name: playListCreate + uris: "{{ playlist_prefix }}/create" + upstream_url: "{{ cb_pores_service_url }}/playList/create" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'contentAccess' + - 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 }}" + + - name: playListUpdate + uris: "{{ playlist_prefix }}/update" + upstream_url: "{{ cb_pores_service_url }}/playList/update" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'contentAccess' + - 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 }}" + + - name: playListRead + uris: "{{ playlist_prefix }}/read" + upstream_url: "{{ cb_pores_service_url }}/playList/read" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'contentAccess' + - 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 }}"