Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 6 additions & 24 deletions ansible/roles/kong-api/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ cb_ext_course_prefix: /accessSetttings
customfield_prefix : /customFields
supportAi_prefix : /support/ai
cb_ext_content_prefix: /content/v2
content_moderation_prefix: /v1/content/moderation
content_moderation_prefix: /v1/content

# Service URLs
knowledge_mw_service_url: "http://knowledge-mw-service:5000"
Expand Down Expand Up @@ -22574,28 +22574,10 @@ kong_apis:
config.limit_by: credential
- name: request-size-limiting
config.allowed_payload_size: "{{ small_request_size_limit }}"

- name: contentModerationLLM
uris: "{{ content_moderation_prefix }}/llm"
upstream_url: "{{ content_moderation_service_url }}/api/v1/profanity/check-llm"
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: contentModerationTransformer
uris: "{{ content_moderation_prefix }}/transformer"
upstream_url: "{{ content_moderation_service_url }}/api/v1/profanity/transformer"
- name: contentModerationText
uris: "{{ content_moderation_prefix }}/moderation/text"
upstream_url: "{{ content_moderation_service_url }}/api/v1/moderation/text"
strip_uri: true
plugins:
- name: jwt
Expand All @@ -22612,8 +22594,8 @@ kong_apis:
config.allowed_payload_size: "{{ medium_request_size_limit }}"

- name: contentModerationLanguageDetection
uris: "{{ content_moderation_prefix }}/detect-language"
upstream_url: "{{ content_moderation_service_url }}/api/v1/profanity/detect-language"
uris: "{{ content_moderation_prefix }}/language/detect"
upstream_url: "{{ content_moderation_service_url }}/api/v1/language/detect"
strip_uri: true
plugins:
- name: jwt
Expand Down