Skip to content

Commit

Permalink
Merge pull request #362 from ruksana2808/patch-14
Browse files Browse the repository at this point in the history
Added kong config for CRUD master competency Area, theme,SubTheme
  • Loading branch information
Haritest authored Jul 17, 2024
2 parents 34e4f34 + 835f340 commit 5ab0302
Showing 1 changed file with 216 additions and 0 deletions.
216 changes: 216 additions & 0 deletions ansible/roles/kong-api/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16120,5 +16120,221 @@ kong_apis:
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: competencyAreaCreate
uris: "{{ comp_area_prefix }}/create"
upstream_url: "{{ cb_pores_service_url }}/competencyArea/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: competencyAreaUpdate
uris: "{{ comp_area_prefix }}/update"
upstream_url: "{{ cb_pores_service_url }}/competencyArea/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: competencyAreaDelete
uris: "{{ comp_area_prefix }}/delete"
upstream_url: "{{ cb_pores_service_url }}/competencyArea/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: competencyAreaRead
uris: "{{ comp_area_prefix }}/read"
upstream_url: "{{ cb_pores_service_url }}/competencyArea/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: competencyThemeCreate
uris: "{{ comp_theme_prefix }}/create"
upstream_url: "{{ cb_pores_service_url }}/competencyTheme/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: competencyThemeUpdate
uris: "{{ comp_theme_prefix }}/update"
upstream_url: "{{ cb_pores_service_url }}/competencyTheme/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: competencyThemeDelete
uris: "{{ comp_theme_prefix }}/delete"
upstream_url: "{{ cb_pores_service_url }}/competencyTheme/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: competencyThemeRead
uris: "{{ comp_theme_prefix }}/read"
upstream_url: "{{ cb_pores_service_url }}/competencyTheme/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: competencySubThemeCreate
uris: "{{ comp_sub_theme_prefix }}/create"
upstream_url: "{{ cb_pores_service_url }}/competencySubTheme/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: competencySubThemeUpdate
uris: "{{ comp_sub_theme_prefix }}/update"
upstream_url: "{{ cb_pores_service_url }}/competencySubTheme/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: competencySubThemeDelete
uris: "{{ comp_sub_theme_prefix }}/delete"
upstream_url: "{{ cb_pores_service_url }}/competencySubTheme/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: competencySubThemeRead
uris: "{{ comp_sub_theme_prefix }}/read"
upstream_url: "{{ cb_pores_service_url }}/competencySubTheme/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 }}"

0 comments on commit 5ab0302

Please sign in to comment.