Skip to content

Commit

Permalink
Added kong for playList API
Browse files Browse the repository at this point in the history
  • Loading branch information
ruksana2808 authored May 15, 2024
1 parent 8845565 commit 0adf881
Showing 1 changed file with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions ansible/roles/kong-api/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -13164,3 +13165,75 @@ kong_apis:
config.hour: "{{ medium_rate_limit_per_hour }}"
config.limit_by: credential
- 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: playListSearch
uris: "{{ playlist_prefix }}/search"
upstream_url: "{{ cb_pores_service_url }}/playList/search"
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: playListDelete
uris: "{{ playlist_prefix }}/delete"
upstream_url: "{{ cb_pores_service_url }}/playList/delete"
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 }}"

0 comments on commit 0adf881

Please sign in to comment.