84 lines
1.4 KiB
YAML
84 lines
1.4 KiB
YAML
server:
|
|
port: 8081
|
|
spring:
|
|
profiles:
|
|
active: query_route
|
|
|
|
---
|
|
spring:
|
|
cloud:
|
|
gateway:
|
|
routes:
|
|
- id: after_route
|
|
uri: http://httpbin.org:80/get
|
|
predicates:
|
|
- After=2017-01-20T17:42:47.789-07:00[America/Denver]
|
|
profiles: after_route
|
|
|
|
---
|
|
spring:
|
|
cloud:
|
|
gateway:
|
|
routes:
|
|
- id: header_route
|
|
uri: http://httpbin.org:80/get
|
|
predicates:
|
|
- Header=X-Request-Id, \d+
|
|
profiles: header_route
|
|
|
|
---
|
|
spring:
|
|
cloud:
|
|
gateway:
|
|
routes:
|
|
- id: cookie_route
|
|
uri: http://httpbin.org:80/get
|
|
predicates:
|
|
- Cookie=name, forezp
|
|
profiles: cookie_route
|
|
|
|
---
|
|
spring:
|
|
cloud:
|
|
gateway:
|
|
routes:
|
|
- id: host_route
|
|
uri: http://httpbin.org:80/get
|
|
predicates:
|
|
- Host=**.fangzhipeng.com
|
|
profiles: host_route
|
|
|
|
|
|
---
|
|
spring:
|
|
cloud:
|
|
gateway:
|
|
routes:
|
|
- id: method_route
|
|
uri: http://httpbin.org:80/get
|
|
predicates:
|
|
- Method=GET
|
|
profiles: method_route
|
|
|
|
---
|
|
spring:
|
|
cloud:
|
|
gateway:
|
|
routes:
|
|
- id: path_route
|
|
uri: http://httpbin.org:80/get
|
|
predicates:
|
|
- Path=/foo/{segment}
|
|
profiles: path_route
|
|
|
|
---
|
|
|
|
spring:
|
|
cloud:
|
|
gateway:
|
|
routes:
|
|
- id: query_route
|
|
uri: http://httpbin.org:80/get
|
|
predicates:
|
|
- Query=foo, ba.
|
|
profiles: query_route |