|
|
jwt:
|
|
|
secret: ZXZnZWVr5b+r5LmQ5L2g55qE5Ye66KGM
|
|
|
filter:
|
|
|
should_not_filter:
|
|
|
- /openapi/evcs/v1/query_token
|
|
|
- /monitorapi/evcs/v2/query_token
|
|
|
- /openapi/evcs/v2/query_token
|
|
|
- /openapi/evcs/v3/query_token
|
|
|
- /openapi/evcs/v4/query_token
|
|
|
- /openapi/evcs/v5/query_token
|
|
|
- /openapi/evcs/v10/query_token
|
|
|
- /openapi/evcs/v11/query_token
|
|
|
- /openapi/evcs/v7/query_stations_info
|
|
|
- /openapi/evcs/v7/query_station_status
|
|
|
- /openapi/evcs/v8/**
|
|
|
- /openapi/protocol/api/ev_query_stations_info
|
|
|
- /openapi/protocol/api/ev_query_equip_business_policy
|
|
|
- /openapi/protocol/api/ev_query_station_status
|
|
|
- /openapi/protocol/api/ev_lx_notificationCheckOrderGenerated
|
|
|
- /openapi/evcs/provincial/query_token
|
|
|
|
|
|
|
|
|
zuul:
|
|
|
#路径配置
|
|
|
routes:
|
|
|
#开放平台
|
|
|
openapi:
|
|
|
stripPrefix: true
|
|
|
path: /openapi/**
|
|
|
sensitiveHeaders:
|
|
|
monitorapi:
|
|
|
stripPrefix: true
|
|
|
path: /monitorapi/**
|
|
|
sensitiveHeaders:
|
|
|
|
|
|
openapi:
|
|
|
ribbon:
|
|
|
listOfServers: http://ms-openapi:7016
|
|
|
|
|
|
monitorapi:
|
|
|
ribbon:
|
|
|
listOfServers: http://ms-monitor-hlht:7033
|
|
|
|
|
|
ribbon:
|
|
|
eureka:
|
|
|
enabled: false #禁用eureka,不依赖 eureka
|
|
|
NFLoadBalancerRuleClassName: com.netflix.loadbalancer.AvailabilityFilteringRule #为所有服务配置统一规则,先过滤掉故障实例,再选择并发较小的实例
|
|
|
ReadTimeout: 100000 #请求处理的超时时间 默认1秒,单位ms
|
|
|
ConnectTimeout: 100000 #请求连接的超时时间 默认1秒,单位ms
|
|
|
MaxAutoRetries: 1 #对当前实例的重试次数 默认0
|
|
|
MaxAutoRetriesNextServer: 3 #切换实例的重试次数 默认1
|
|
|
|
|
|
hystrix:
|
|
|
command:
|
|
|
default:
|
|
|
execution:
|
|
|
timeout:
|
|
|
enabled: true #配置HystrixCommand的执行是否启用超时时间
|
|
|
isolation:
|
|
|
thread:
|
|
|
timeoutInMilliseconds: 20000 #配置HystrixCommand执行的超时时间,执行超过该时间会进行服务降级处理 20s
|
|
|
|
|
|
|
|
|
spring:
|
|
|
redis:
|
|
|
database: 0
|
|
|
host: r-bp14c1p5j5lkpw1jc2.redis.rds.aliyuncs.com
|
|
|
port: 6379
|
|
|
password: Ycharge666
|
|
|
timeout: 0
|
|
|
pool:
|
|
|
max-active: 8
|
|
|
max-idle: 8
|
|
|
min-idle: 0
|
|
|
dinger:
|
|
|
project-id: ${spring.application.name}-${spring.profiles.active}
|
|
|
dingers:
|
|
|
# 使用钉钉机器人, 请根据自己机器人配置信息进行修改
|
|
|
dingtalk:
|
|
|
# tokenId是创建机器人的webhook
|
|
|
tokenId: 6c0cd9de94359329fe166dfefe39da0d8d3fba59211dfdc64d8aba1d1acd89fb
|
|
|
# secret是创建机器人的加签
|
|
|
secret: SEC9e3b8638d5670215e966efc891be4c7d83c09dd8f032df7ca84972a2661effb7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|