Skip to content

Commit

Permalink
Merge pull request #11 from ankitpws/testing-6.0.0
Browse files Browse the repository at this point in the history
added Upload api endpoint in public kong
  • Loading branch information
ankit1shahu authored Feb 19, 2024
2 parents 5c2c30c + e42b310 commit 8db85d8
Show file tree
Hide file tree
Showing 2 changed files with 25 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
5 changes: 4 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,7 @@ 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 8db85d8

Please sign in to comment.