Skip to content

Commit

Permalink
ED-3534:- Adoption Changes in ML service (project-sunbird#3963)
Browse files Browse the repository at this point in the history
* saving changes

* added Upload api endpoint in public kong

---------

Co-authored-by: ankitshahu <[email protected]>
  • Loading branch information
2 people authored and santhosh-tg committed Jun 27, 2024
1 parent aa5cc91 commit 46a1cb4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
21 changes: 21 additions & 0 deletions ansible/roles/kong-api/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8237,6 +8237,27 @@ kong_apis:
config.required: false
config.enabled: false

- name: uploadFileToCloud
uris: "{{ cloud_service_prefix }}/mlcore/v1/files/upload"
upstream_url: "{{ ml_core_service_url }}/v1/cloud-services/files/upload"
strip_uri: true
plugins:
- name: jwt
- name: cors
- "{{ statsd_pulgin }}"
- name: acl
config.whitelist:
- cloudUrlsCreate
- 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: "{{ small_request_size_limit }}"
- name: opa-checks
config.required: false
config.enabled: false

- name: listPlatformPrograms
uris: "{{ user_extension_prefix }}/mlcore/v1/programsByPlatformRoles"
upstream_url: "{{ ml_core_service_url }}/v1/user-extension/programsByPlatformRoles"
Expand Down
6 changes: 5 additions & 1 deletion ansible/roles/stack-sunbird/templates/ml-core-service.env
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,8 @@ TIMEZONE_DIFFRENECE_BETWEEN_LOCAL_TIME_AND_UTC={{ml_core_timezone_diffrenece_bet


#Validate Entities enable/Disable
VALIDATE_ENTITIES={{ml_service_validate_entities | default ("ON")}}
VALIDATE_ENTITIES={{ml_service_validate_entities | default ("ON")}}

#Public base url of sunbird
PUBLIC_BASE_URL={{ml_core_public_base_url | default("")}}

0 comments on commit 46a1cb4

Please sign in to comment.