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.

347 lines
8.3 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# JWT 用于鉴权,目前我用不上
jwt:
secret: ZXZnZWVr5b+r5LmQ5L2g55qE5Ye66KGM
filter:
should_not_filter: # 不需要过滤的url
- /mgrApi/saasUser/login
- /mgrApi/saasUser/mobileLogin
- /orderbkapi/export
- /userapi/export
- /deviceapi/geomagnetic/updateGeomagneticRealState
- /orderbkapi/activityNew/test
# 网关配置
zuul:
#路径配置
routes:
#新管理模块
mgrApi:
stripPrefix: false # 前缀配置
path: /mgrApi/**
sensitiveHeaders:
#充电用户管理模块
userapi:
stripPrefix: false
path: /userapi/**
sensitiveHeaders:
#saas运营商管理模块
operatorapi:
stripPrefix: false
path: /operatorapi/**
sensitiveHeaders:
#财务管理模块
financeapi:
stripPrefix: true
path: /financeapi/**
sensitiveHeaders:
#运营商账户模块
operatorBill:
stripPrefix: true
path: /operatorBill/**
sensitiveHeaders:
#数据分析(充值)模块
recManager:
stripPrefix: false
path: /recManager/**
sensitiveHeaders:
#订单管理模块
orderapi:
stripPrefix: false
path: /orderapi/**
sensitiveHeaders:
#订单后台模块
orderbkapi:
stripPrefix: false
path: /orderbkapi/**
sensitiveHeaders:
#导出模块
exportapi:
stripPrefix: false
path: /exportapi/**
sensitiveHeaders:
#充电站活动管理模块
stationActivity:
stripPrefix: false
path: /stationActivity/**
sensitiveHeaders:
#旧充电站活动管理模块
oldStationActivity:
stripPrefix: false
path: /oldStationActivity/**
sensitiveHeaders:
#活动通知管理模块
activityNotice:
stripPrefix: false
path: /activityNotice/**
sensitiveHeaders:
#代理商管理模块
agent:
stripPrefix: false
path: /agent/**
sensitiveHeaders:
#充电站管理模块
station:
stripPrefix: false
path: /station/**
sensitiveHeaders:
#充电桩管理模块
equipment:
stripPrefix: false
path: /equipment/**
sensitiveHeaders:
#充电枪管理模块
connector:
stripPrefix: false
path: /connector/**
sensitiveHeaders:
#saas充电站管理模块
saasstation:
stripPrefix: false
path: /saasstation/**
sensitiveHeaders:
#saas充电桩管理模块
saasequipment:
stripPrefix: false
path: /saasequipment/**
sensitiveHeaders:
#saas充电枪管理模块
saasconnector:
stripPrefix: false
path: /saasconnector/**
sensitiveHeaders:
#企业管理模块
company:
stripPrefix: false
path: /company/**
sensitiveHeaders:
#运营商管理模块
operator:
stripPrefix: false
path: /operator/**
sensitiveHeaders:
#旧运营商管理模块
platform:
stripPrefix: false
path: /platform/**
sensitiveHeaders:
#监控中心管理模块
monitoring:
stripPrefix: false
path: /monitoring/**
sensitiveHeaders:
#计费规则模块
equipmentPricingRule:
stripPrefix: false
path: /equipmentPricingRule/**
sensitiveHeaders:
#region查询省市模块
region:
stripPrefix: false
path: /region/**
sensitiveHeaders:
#协议模块
protocolapi:
stripPrefix: false
path: /protocolapi/**
sensitiveHeaders:
#首页桩待办模块(建雄)
distribute:
stripPrefix: false
path: /distribute/**
sensitiveHeaders:
saas:
stripPrefix: false
path: /saas/**
sensitiveHeaders:
#外接监控接口
# openapi:
# stripPrefix: false
# path: /openapi/**
# sensitiveHeaders:
# api:
# stripPrefix: false
# path: /api/**
# sensitiveHeaders:
#测试模块
testapi:
stripPrefix: false
path: /testapi/**
sensitiveHeaders:
#手机助手
mobileapi:
stripPrefix: false
path: /mobileapi/**
sensitiveHeaders:
#第三方设备
deviceapi:
stripPrefix: false
path: /deviceapi/**
sensitiveHeaders:
#监控平台(G端)
monitorapi:
stripPrefix: false
path: /monitor/api/**
sensitiveHeaders:
#互联互通模块
openapi:
stripPrefix: true
path: /openapi/**
sensitiveHeaders:
#11、黄海自己扩展的JFinal模块
ZhuQue:
stripPrefix: false
path: /ZhuQue/**
sensitiveHeaders:
# 服务主机注册配置
ZhuQue:
ribbon:
listOfServers: http://10.10.21.21:8888
orderbkapi:
ribbon:
listOfServers: http://ms-admin:7011
exportapi:
ribbon:
listOfServers: http://ms-admin:7011
operatorBill:
ribbon:
listOfServers: http://ms-admin:7011
distribute:
ribbon:
listOfServers: http://ms-admin:7011
protocolapi:
ribbon:
listOfServers: http://ms-distribute:7012
recManager:
ribbon:
listOfServers: http://ms-finance:7014
openapi:
ribbon:
listOfServers: http://ms-finance:7014
stationActivity:
ribbon:
listOfServers: http://ms-station:7020
oldStationActivity:
ribbon:
listOfServers: http://ms-station:7020
activityNotice:
ribbon:
listOfServers: http://ms-station:7020
agent:
ribbon:
listOfServers: http://ms-station:7020
station:
ribbon:
listOfServers: http://ms-station:7020
equipment:
ribbon:
listOfServers: http://ms-station:7020
connector:
ribbon:
listOfServers: http://ms-station:7020
saasstation:
ribbon:
listOfServers: http://ms-station:7020
saasequipment:
ribbon:
listOfServers: http://ms-station:7020
saasconnector:
ribbon:
listOfServers: http://ms-station:7020
company:
ribbon:
listOfServers: http://ms-station:7020
operator:
ribbon:
listOfServers: http://ms-station:7020
platform:
ribbon:
listOfServers: http://ms-station:7020
monitoring:
ribbon:
listOfServers: http://ms-station:7020
equipmentPricingRule:
ribbon:
listOfServers: http://ms-station:7020
region:
ribbon:
listOfServers: http://ms-station:7020
saas:
ribbon:
listOfServers: http://ms-station:7020
mgrApi:
ribbon:
listOfServers: http://ms-saas-mgr:7026
orderapi:
ribbon:
listOfServers: http://ms-task:7021
userapi:
ribbon:
listOfServers: http://ms-user:7022
operatorapi:
ribbon:
listOfServers: http://ms-user:7022
financeapi:
ribbon:
listOfServers: http://ms-websocket-ocpp:7022
# 未找到此项目
monitorapi:
ribbon:
listOfServers: http://i100c.3322.org:30731
# 负载均衡
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: 80000 #配置HystrixCommand执行的超时时间执行超过该时间会进行服务降级处理 80s
# 数据库
spring:
data:
mongodb:
host: 10.10.14.210
port: 27017
database: yltcharge
username: yltcharge
password: yltcharge
dinger:
project-id: ${spring.application.name}-${spring.profiles.active}
dingers:
# 使用钉钉机器人, 请根据自己机器人配置信息进行修改
dingtalk:
# tokenId是创建机器人的webhook
tokenId: ad3700d79705ea1502e57c5fa170fda23d5c6502f3d0410a66dbc2a8e1d06986
# secret是创建机器人的加签
secret: SEC167efa8be3412d3b9dbf87286d9b837836aabd79cf20f9966001333a287a39a5