You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
2.6 KiB

1 year ago
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://127.0.0.1:7016
monitorapi:
ribbon:
listOfServers: http://127.0.0.1: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: 8000 #配置HystrixCommand执行的超时时间执行超过该时间会进行服务降级处理 8s
spring:
redis:
database: 0
12 months ago
host: 10.10.14.210
port: 6379
12 months ago
password: ylt#redis
1 year ago
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: ad3700d79705ea1502e57c5fa170fda23d5c6502f3d0410a66dbc2a8e1d06986
# secret是创建机器人的加签
secret: SEC167efa8be3412d3b9dbf87286d9b837836aabd79cf20f9966001333a287a39a5