-
Notifications
You must be signed in to change notification settings - Fork 0
/
api-gateway.yml
48 lines (48 loc) · 1.24 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
eureka:
client:
fetch-registry: true
register-with-eureka: true
serviceUrl:
defaultZone: http://localhost:8761/eureka
logging:
level:
org:
springframework:
cloud:
gateway: TRACE
gateway.route.RouteDefinitionLocator: INFO
root: INFO
server:
port: 8081
spring:
application:
name: api-gateway
cloud:
gateway:
routes:
- id: config-service
predicates:
- Path=/api/v1/configs/**
uri: lb://config-service
- id: customer-service
predicates:
- Path=/api/v1/customers/**
uri: lb://customer-service
- id: booking-service
predicates:
- Path=/api/v1/bookings/**
uri: lb://booking-service
- id: notification-service
predicates:
- Path=/api/v1/notifications/**
uri: lb://notification-service
- id: discovery-service
predicates:
- Path=/eureka/web
uri: http://localhost:8761
filters:
- SetPath=/
- id: discovery-service-static
predicates:
- Path=/eureka/**
uri: http://localhost:8761