Skip to content

Commit

Permalink
added kong API config for career. create, read, update, publish, reti…
Browse files Browse the repository at this point in the history
…re (#263)
  • Loading branch information
pathiktarento1089 authored Apr 16, 2024
1 parent 5779e93 commit c4fb12c
Showing 1 changed file with 91 additions and 0 deletions.
91 changes: 91 additions & 0 deletions ansible/roles/kong-api/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ private_ml_core_prefix: /private/mlcore
private_ml_survey_prefix: /private/mlsurvey
open_program_prefix: /openprogram
calendar_prefix: /calendar
careers_prefix: /careers

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

- name: createCareersEvent
uris: "{{ careers_prefix }}/v4/create"
upstream_url: "{{ content_service_url }}/event/v4/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: readCareersEvent
uris: "{{ careers_prefix }}/v4/read"
upstream_url: "{{ content_service_url }}/event/v4/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: updateCareersEvent
uris: "{{ careers_prefix }}/v4/update"
upstream_url: "{{ content_service_url }}/event/v4/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: publishCareersPrefixEvent
uris: "{{ careers_prefix }}/v4/publish"
upstream_url: "{{ content_service_url }}/event/v4/publish"
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: retireCareersEvent
uris: "{{ careers_prefix }}/v4/retire"
upstream_url: "{{ content_service_url }}/event/v4/retire"
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 c4fb12c

Please sign in to comment.