Skip to content

Commit

Permalink
mta.yaml: optimize destinations
Browse files Browse the repository at this point in the history
  • Loading branch information
vl-leon committed Dec 12, 2024
1 parent 6e7dc8e commit 37fb78d
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions mta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@ modules:
readiness-health-check-http-endpoint: /health
disk-quota: 256M
memory: 256M
destination-name: bookshop-dest
build-parameters:
builder: npm
provides:
- name: bookshop-api
properties:
srv-url: ${default-url}
destination: ${destination-name}
requires:
- name: samples-messaging
- name: samples-db
Expand All @@ -46,14 +44,12 @@ modules:
readiness-health-check-http-endpoint: /health
disk-quota: 256M
memory: 256M
destination-name: orders-dest
build-parameters:
builder: npm
provides:
- name: orders-api
properties:
srv-url: ${default-url}
destination: ${destination-name}
requires:
- name: samples-messaging
- name: samples-db
Expand All @@ -68,14 +64,12 @@ modules:
readiness-health-check-http-endpoint: /health
disk-quota: 256M
memory: 256M
destination-name: reviews-dest
build-parameters:
builder: npm
provides:
- name: reviews-api
properties:
srv-url: ${default-url}
destination: ${destination-name}
requires:
- name: samples-messaging
- name: samples-db
Expand Down Expand Up @@ -166,17 +160,12 @@ modules:
instance:
existing_destinations_policy: update
destinations:
- Name: ~{bookshop-api/destination}
URL: ~{bookshop-api/srv-url}
Authentication: OAuth2ClientCredentials
TokenServiceInstanceName: samples-auth
TokenServiceKeyName: xsuaa_service-key
- Name: ~{orders-api/destination}
- Name: orders-dest
URL: ~{orders-api/srv-url}
Authentication: OAuth2ClientCredentials
TokenServiceInstanceName: samples-auth
TokenServiceKeyName: xsuaa_service-key
- Name: ~{reviews-api/destination}
- Name: reviews-dest
URL: ~{reviews-api/srv-url}
Authentication: OAuth2ClientCredentials
TokenServiceInstanceName: samples-auth
Expand Down

0 comments on commit 37fb78d

Please sign in to comment.