Skip to content

Commit

Permalink
Merge pull request #310 from Sahil-tarento/4.8.15-orgList-dev
Browse files Browse the repository at this point in the history
orgList and Announcement
  • Loading branch information
Haritest authored May 31, 2024
2 parents 4f940c6 + 049d9a7 commit c99dc25
Showing 1 changed file with 218 additions and 0 deletions.
218 changes: 218 additions & 0 deletions ansible/roles/kong-api/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ careers_prefix: /careers
demand_prefix: /demand
playlist_prefix: /playList
interest_prefix: /interest
orgBookmark_prefix: /orgBookmark
announcement_prefix: /announcements

# Service URLs
knowledge_mw_service_url: "http://knowledge-mw-service:5000"
Expand Down Expand Up @@ -13438,3 +13440,219 @@ kong_apis:
config.limit_by: credential
- name: request-size-limiting
config.allowed_payload_size: "{{ medium_request_size_limit }}"

- name: orgBookmarkCreate
uris: "{{ orgBookmark_prefix }}/v1/create"
upstream_url: "{{ cb_pores_service_url }}/orgBookmark/v1/create"
strip_uri: true
plugins:
- name: jwt
- name: cors
- "{{ statsd_pulgin }}"
- name: acl
config.whitelist:
- 'contentCreate'
- 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: orgBookmarkUpdate
uris: "{{ orgBookmark_prefix }}/v1/update"
upstream_url: "{{ cb_pores_service_url }}/orgBookmark/v1/update"
strip_uri: true
plugins:
- name: jwt
- name: cors
- "{{ statsd_pulgin }}"
- name: acl
config.whitelist:
- 'contentUpdate'
- 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: orgBookmarkSearch
uris: "{{ orgBookmark_prefix }}/v1/search"
upstream_url: "{{ cb_pores_service_url }}/orgBookmark/v1/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: orgBookmarkDelete
uris: "{{ orgBookmark_prefix }}/v1/delete"
upstream_url: "{{ cb_pores_service_url }}/orgBookmark/v1/delete"
strip_uri: true
plugins:
- name: jwt
- name: cors
- "{{ statsd_pulgin }}"
- name: acl
config.whitelist:
- 'contentUpdate'
- 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: orgBookmarkRead
uris: "{{ orgBookmark_prefix }}/v1/read"
upstream_url: "{{ cb_pores_service_url }}/orgBookmark/v1/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 }}"

- name: playListV2Search
uris: "{{ playlist_prefix }}/v2/search"
upstream_url: "{{ cb_pores_service_url }}/playList/v2/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: 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 }}"

- name: announcementCreate
uris: "{{ announcement_prefix }}/v1/create"
upstream_url: "{{ cb_pores_service_url }}/announcements/v1/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: announcementSearch
uris: "{{ announcement_prefix }}/v1/search"
upstream_url: "{{ cb_pores_service_url }}/announcements/v1/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: announcementUpdate
uris: "{{ announcement_prefix }}/v1/update"
upstream_url: "{{ cb_pores_service_url }}/announcements/v1/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: announcementRead
uris: "{{ announcement_prefix }}/v1/read"
upstream_url: "{{ cb_pores_service_url }}/announcements/v1/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 }}"

- name: announcementDelete
uris: "{{ announcement_prefix }}/v1/delete"
upstream_url: "{{ cb_pores_service_url }}/announcements/v1/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 c99dc25

Please sign in to comment.