application.yml
932 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
37
eureka:
client:
fetch-registry: true
register-with-eureka: true
service-url:
# defaultZone: http://localhost:8761/eureka/
defaultZone: http://localhost:8761/eureka/,http://localhost:8762/eureka/
instance:
hostname: localhost
lease-expiration-duration-in-seconds: 90
lease-renewal-interval-in-seconds: 10
prefer-ip-address: true
spring:
cloud:
gateway:
routes:
- id: usersearch
uri: lb://usersearch
predicates:
- Path=/usersearch/**
filters:
- StripPrefix=1
- id: haikangserver
uri: lb://haikangserver
predicates:
- Path=/haikangserver/**
filters:
- StripPrefix=1
- id: authserver
uri: lb://authserver
predicates:
- Path=/authserver/**
filters:
- StripPrefix=1
url:
ignored: /authserver/**