Skip to content

Commit

Permalink
fix: revert to kong 9 and remove repeated apis
Browse files Browse the repository at this point in the history
  • Loading branch information
beepdot committed Dec 11, 2019
1 parent f9bec2a commit 646fbdf
Showing 1 changed file with 7 additions and 24 deletions.
31 changes: 7 additions & 24 deletions ansible/roles/kong-api/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ cert_registry_service_prefix: /certreg
desktop_app_prefix: /desktop

# Service URLs
content_service_url: "http://knowledge-mw-service:5000"
content_service_url: "http://content-service:5000"
learning_service_url: "http://learner-service:9000"
vm_learning_service_url: "http://{{learningservice_ip}}:8080/learning-service"
telemetry_service_url: "http://telemetry-service:9001"
player_service_url: "http://player:3000"
echo_service_url: "http://echo:9595"
am_util_url: "http://adminutil:4000"
am_util_url: http://adminutil:4000
config_service_url: "http://config-service:8080"
user_org_service_url: "http://user-org-service:9000"
lms_service_url: "http://lms-service:9000"
Expand Down Expand Up @@ -100,6 +100,7 @@ premium_consumer_rate_limits:
# - {name: 'rate-limiting', config.hour: "{{ medium_rate_limit_per_hour }}"}
# - {name: 'request-size-limiting', config.allowed_payload_size: "{{ medium_request_size_limit }}" }
kong_apis:

- name: PrivateContentAPIs
request_path: "{{ private_content_prefix }}/v3"
upstream_url: "{{ vm_learning_service_url }}/content/v3"
Expand Down Expand Up @@ -3567,7 +3568,6 @@ kong_apis:
- {name: 'acl', config.whitelist: 'publicUser'}
- {name: 'rate-limiting', config.policy: "local", config.hour: "{{ medium_rate_limit_per_hour }}"}
- {name: 'request-size-limiting', config.allowed_payload_size: "{{ small_request_size_limit }}" }

- name: "dataproductsCumulativeMetrics"
request_path: "{{ data_service_prefix }}/v3/metrics"
upstream_url: "{{ sunbird_analytics_api_base_url }}/metrics"
Expand All @@ -3579,7 +3579,6 @@ kong_apis:
- {name: 'acl', config.whitelist: 'publicUser'}
- {name: 'rate-limiting', config.policy: "local", config.hour: "{{ medium_rate_limit_per_hour }}"}
- {name: 'request-size-limiting', config.allowed_payload_size: "{{ small_request_size_limit }}" }

- name: "experimentcreate"
request_path: "{{ data_service_prefix }}/v1/experiement/create"
upstream_url: "{{ sunbird_analytics_api_base_url }}/experiment/create"
Expand All @@ -3591,7 +3590,6 @@ kong_apis:
- {name: 'acl', config.whitelist: 'publicUser'}
- {name: 'rate-limiting', config.policy: "local", config.hour: "{{ medium_rate_limit_per_hour }}"}
- {name: 'request-size-limiting', config.allowed_payload_size: "{{ small_request_size_limit }}" }

- name: "experimentread"
request_path: "{{ data_service_prefix }}/v1/experiement/get"
upstream_url: "{{ sunbird_analytics_api_base_url }}/experiment/get"
Expand Down Expand Up @@ -4637,9 +4635,9 @@ kong_apis:
config.limit_by: credential
- name: request-size-limiting
config.allowed_payload_size: "{{ small_request_size_limit }}"
- name: userMigrate
request_path: "{{ user_service_prefix }}/v1/migrate"
upstream_url: "{{ learning_service_url }}/v1/user/migrate"
- name: rejectMigrate
request_path: "{{ user_service_prefix }}/v1/migrate/reject"
upstream_url: "{{ learning_service_url }}/v1/user/migrate/reject"
strip_request_path: true
plugins:
- name: jwt
Expand Down Expand Up @@ -4685,19 +4683,4 @@ kong_apis:
config.limit_by: credential
- name: request-size-limiting
config.allowed_payload_size: "{{ small_request_size_limit }}"
- name: userFeed
request_path: "{{ user_service_prefix }}/v1/feed"
upstream_url: "{{ learning_service_url }}/v1/user/feed"
strip_request_path: true
plugins:
- name: jwt
- name: cors
- "{{ statsd_pulgin }}"
- name: acl
config.whitelist: publicUser
- 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 }}"

0 comments on commit 646fbdf

Please sign in to comment.