fix:YIAN配置文件
This commit is contained in:
123
gateway2/src/main/resources/application-yian.yml
Normal file
123
gateway2/src/main/resources/application-yian.yml
Normal file
@@ -0,0 +1,123 @@
|
||||
server:
|
||||
port: 7100
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: gateway2
|
||||
cloud:
|
||||
nacos:
|
||||
config:
|
||||
server-addr: 192.168.0.88:8848
|
||||
file-extension: yaml
|
||||
import-check:
|
||||
enabled: false
|
||||
discovery:
|
||||
server-addr: 192.168.0.88:8848
|
||||
group: DEV_GROUP
|
||||
enabled: true
|
||||
gateway:
|
||||
httpclient:
|
||||
connect-timeout: 10000
|
||||
response-timeout: 10000
|
||||
routes:
|
||||
- id: approve-service
|
||||
uri: lb://approve
|
||||
predicates:
|
||||
- Path=/simulation/approve/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
- id: capability-service
|
||||
uri: lb://capability
|
||||
predicates:
|
||||
- Path=/simulation/capability/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
- id: data-service
|
||||
uri: lb://data
|
||||
predicates:
|
||||
- Path=/simulation/data/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
metadata:
|
||||
group: DEV_GROUP # 指定目标服务的分组
|
||||
- id: pbs-service
|
||||
uri: lb://pbs
|
||||
predicates:
|
||||
- Path=/simulation/pbs/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
- id: performance-service
|
||||
uri: lb://performance
|
||||
predicates:
|
||||
- Path=/simulation/performance/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
- id: project-service
|
||||
uri: lb://project
|
||||
predicates:
|
||||
- Path=/simulation/project/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
metadata:
|
||||
group: DEV_GROUP # 指定目标服务的分组
|
||||
- id: system-service
|
||||
uri: lb://system
|
||||
predicates:
|
||||
- Path=/simulation/system/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
metadata:
|
||||
group: DEV_GROUP # 指定目标服务的分组
|
||||
- id: task-service
|
||||
uri: lb://task
|
||||
predicates:
|
||||
- Path=/simulation/task/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
metadata:
|
||||
group: DEV_GROUP # 指定目标服务的分组
|
||||
- id: flowable-service
|
||||
uri: lb://flowable
|
||||
predicates:
|
||||
- Path=/simulation/flowable/**
|
||||
filters:
|
||||
- StripPrefix=2
|
||||
metadata:
|
||||
group: LOCAL_GROUP # 指定目标服务的分组
|
||||
discovery:
|
||||
locator:
|
||||
enabled: true
|
||||
lower-case-service-id: true
|
||||
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: health,info
|
||||
endpoint:
|
||||
health:
|
||||
show-details: always
|
||||
group:
|
||||
readiness:
|
||||
include: discoveryComposite,ping,refreshScope
|
||||
health:
|
||||
redis:
|
||||
enabled: false
|
||||
db:
|
||||
enabled: false
|
||||
|
||||
logging:
|
||||
level:
|
||||
com.sdm.gateway2: INFO
|
||||
org.springframework.cloud.gateway: INFO
|
||||
reactor.netty: INFO
|
||||
|
||||
# 0单机处理,1负载均衡轮询
|
||||
serverType: 0
|
||||
serverIp: 192.168.0.88
|
||||
#serverIp: 192.168.65.73
|
||||
|
||||
security:
|
||||
whitelist:
|
||||
paths:
|
||||
- aa
|
||||
Reference in New Issue
Block a user