Skip to content

Commit

Permalink
Update main.yml kong updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Haritest authored Sep 28, 2024
1 parent 85b4bbf commit f9ed423
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions ansible/roles/kong-api/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17822,3 +17822,45 @@ kong_apis:
config.limit_by: credential
- name: request-size-limiting
config.allowed_payload_size: "{{ medium_request_size_limit }}"

- name: publicAssessmentRead
uris: "{{ public_assessment_prefix }}/v1/read"
upstream_url: "{{ public_assessment_service_url }}/v5/public/user/assessment/read"
strip_uri: true
plugins:
- name: cors
- "{{ statsd_pulgin }}"
- 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: publicAssessmentQuestionList
uris: "{{ public_assessment_prefix }}/v1/question/list"
upstream_url: "{{ public_assessment_service_url }}/v5/public/assessment/question/list"
strip_uri: true
plugins:
- name: cors
- "{{ statsd_pulgin }}"
- 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: publicAssessmentSubmit
uris: "{{ public_assessment_prefix }}/v1/assessment/submit"
upstream_url: "{{ public_assessment_service_url }}/v5/user/assessment/submit"
strip_uri: true
plugins:
- name: cors
- "{{ statsd_pulgin }}"
- 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 f9ed423

Please sign in to comment.