Skip to content

Commit

Permalink
Merge pull request sunbird-cb#290 from shankaragoudab/patch-32
Browse files Browse the repository at this point in the history
added discussion report api
  • Loading branch information
Haritest authored Dec 17, 2024
2 parents 37691b2 + ee9982e commit 8ed6dc7
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions ansible/roles/kong-api/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18851,8 +18851,8 @@ kong_apis:
config.hour: "{{ medium_rate_limit_per_hour }}"
config.limit_by: credential
- name: request-size-limiting
config.allowed_payload_size: "{{ medium_request_size_limit }}"

config.allowed_payload_size: "{{ medium_request_size_limit }}"
- name: recommendationCourseByDesignation
uris: "/courseRecommend/v1/courses"
upstream_url: "{{ sb_cb_ext_service_url }}/recommendations/v1/courses"
Expand All @@ -18869,4 +18869,22 @@ kong_apis:
config.hour: "{{ medium_rate_limit_per_hour }}"
config.limit_by: credential
- name: request-size-limiting
config.allowed_payload_size: "{{ medium_request_size_limit }}"
config.allowed_payload_size: "{{ medium_request_size_limit }}"

- name: reportDiscussion
uris: "{{ discussionfeed_prefix }}/report"
upstream_url: "{{ cb_discussion_service_url }}/discussion/report"
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 }}"

0 comments on commit 8ed6dc7

Please sign in to comment.