-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgateway.yml
More file actions
36 lines (34 loc) · 834 Bytes
/
gateway.yml
File metadata and controls
36 lines (34 loc) · 834 Bytes
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
spring:
cloud:
gateway:
discovery:
locator:
enabled: true
lower-case-service-id: true
routes:
- id: posts-route
uri: ${POSTS_ROUTE_URI:http://localhost:8081}
predicates:
- Path=/posts/**
filters:
- PrefixPath=/api
- AddResponseHeader=X-Powered-By, Codaholic Gateway Service
- id: comments-route
uri: ${COMMENTS_ROUTE_URI:http://localhost:8082}
predicates:
- Path=/comments/**
filters:
- PrefixPath=/api
- AddResponseHeader=X-Powered-By, Codaholic Gateway Service
server:
port: 3001
management:
endpoints:
web:
exposure:
include: "*"
endpoint:
health:
show-details: always
gateway:
enabled: true