-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathapi-gateway.yml
61 lines (56 loc) · 1.38 KB
/
api-gateway.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
spring:
cloud:
loadbalancer:
ribbon:
enabled: false
gateway:
x-forwarded:
enabled: true
for-enabled: true
proto-enabled: true
host-append: false
port-append: false
proto-append: false
routes:
- id: vets-service
uri: lb:http://vets-service
predicates:
- Path=/api/vet/**
filters:
- StripPrefix=2
- id: visits-service
uri: lb:http://visits-service
predicates:
- Path=/api/visit/**
filters:
- StripPrefix=2
- id: customers-service
uri: lb:http://customers-service
predicates:
- Path=/api/customer/**
filters:
- StripPrefix=2
- id: show-me-google
uri: https://www.google.com
predicates:
- Path=/api/red/{segment}
filters:
- AddRequestHeader=X-Request-Red, Blue-{segment}
- StripPrefix=2
server:
port: 8080
compression:
enabled: true
mime-types: application/json,text/css,application/javascript
min-response-size: 2048
# Internationalization
spring.messages.basename: messages/messages
---
spring:
profiles: docker
zipkin:
baseUrl: http://tracing-server:9411
eureka:
client:
serviceUrl:
defaultZone: http://discovery-server:8761/eureka/