|
|
jwt:
|
|
|
# 密钥
|
|
|
secret: ZXZnZWVr5b+r5LmQ5L2g55qE5Ye66KGM
|
|
|
filter:
|
|
|
should_not_filter:
|
|
|
- /gw/login
|
|
|
- /userapi/getOpenId
|
|
|
- /userapi/weChatAuth
|
|
|
- /userapi/mobileLogin
|
|
|
- /userapi/sendMs
|
|
|
- /financeapi/wxSmallApp/wxSmallAppPayNotice
|
|
|
- /stationapi/station/queryNearbyStation
|
|
|
- /stationapi/station/queryNearbyStationMapMode
|
|
|
- /stationapi/station/queryYiXingWebsiteStationInfo
|
|
|
- /stationapi/station/identifyQR/PfV6GsETrX.txt
|
|
|
- /stationapi/station/PfV6GsETrX.txt
|
|
|
- /stationapi/station/queryStationList
|
|
|
- /stationapi/station/queryStationOperator
|
|
|
- /noticeapi/park/parkCoupon
|
|
|
- /userapi/getChewei
|
|
|
- /cheweiapi
|
|
|
- /financeapi/alipay/aliPayNotice
|
|
|
- /financeapi/alipay/aliPayNoticeFromSmallApp
|
|
|
- /financeapi/wxpay/wxAppPayNotice
|
|
|
- /financeapi/alipay/aliPayNoticeByCharge
|
|
|
- /userapi/wxLogin
|
|
|
- /userapi/forgetPW
|
|
|
- /userapi/loginByPW
|
|
|
- /userapi/getAccessToken
|
|
|
- /userapi/appWxLogin
|
|
|
- /userapi/getDictByKey
|
|
|
- /userapi/adPage/queryAdPage
|
|
|
- /userapi/appVersion/*
|
|
|
- /userapi/weChat/*
|
|
|
- /userapi/redPacket/getRedPacketDrawRecord
|
|
|
- /userapi/h5/*
|
|
|
- /userapi/groundLockStatus
|
|
|
- /userapi/getDictByKey
|
|
|
- /orderapi/inspectionReport/queryOrder
|
|
|
- /orderapi/inspectionReport/queryUserInfo
|
|
|
- /orderapi/inspectionReport/notificationShallowReport
|
|
|
- /orderapi/inspectionReport/notificationDeepReport
|
|
|
- /openapi/lock/queryConnectorId
|
|
|
- /openapi/lock/queryParkingLock
|
|
|
|
|
|
zuul:
|
|
|
#路径配置
|
|
|
routes:
|
|
|
# 1、用户模块
|
|
|
# UserInfoController
|
|
|
# @RequestMapping("/userapi/user")
|
|
|
userapi:
|
|
|
stripPrefix: false
|
|
|
path: /userapi/** # 所有匹配/usrerapi/**的路径将被路由到/userapi/**
|
|
|
# sensitiveHeaders是黑名单,且默认不为空。 因此,要使Zuul发送所有标头(忽略的标头除外),您必须将其明确设置为空列表。 如果要将cookie或授权标头传递到后端,则必须这样做。
|
|
|
sensitiveHeaders:
|
|
|
#2、财务模块
|
|
|
financeapi:
|
|
|
stripPrefix: true
|
|
|
path: /financeapi/**
|
|
|
sensitiveHeaders:
|
|
|
#3、充电站模块
|
|
|
stationapi:
|
|
|
stripPrefix: true
|
|
|
path: /stationapi/**
|
|
|
sensitiveHeaders:
|
|
|
#4、订单模块
|
|
|
orderapi:
|
|
|
stripPrefix: false
|
|
|
path: /orderapi/**
|
|
|
sensitiveHeaders:
|
|
|
#5、互联互通模块
|
|
|
openapi:
|
|
|
stripPrefix: true
|
|
|
path: /openapi/**
|
|
|
sensitiveHeaders:
|
|
|
#6、订单后台模块
|
|
|
orderbkapi:
|
|
|
stripPrefix: false
|
|
|
path: /orderbkapi/**
|
|
|
sensitiveHeaders:
|
|
|
#7、协议模块 【这个为什么没有路由地址指向呢?】
|
|
|
protocolapi:
|
|
|
stripPrefix: false
|
|
|
path: /protocolapi/**
|
|
|
sensitiveHeaders:
|
|
|
#8、分发模块
|
|
|
distribute:
|
|
|
stripPrefix: false
|
|
|
path: /distribute/**
|
|
|
sensitiveHeaders:
|
|
|
#9、通知模块
|
|
|
noticeapi:
|
|
|
stripPrefix: false
|
|
|
path: /noticeapi/**
|
|
|
sensitiveHeaders:
|
|
|
#10、通知模块
|
|
|
cheweiapi:
|
|
|
stripPrefix: false
|
|
|
path: /cheweiapi/**
|
|
|
sensitiveHeaders:
|
|
|
|
|
|
# https://blog.csdn.net/qq_39470733/article/details/109474782
|
|
|
# 基于配置的服务器列表:需要在项目配置文件中通过<服务名称>.ribbon.listOfServers进行设置。
|
|
|
# 如user-service.ribbon.listOfServers=http://127.0.0.1:8082,http://127.0.0.1:8083
|
|
|
|
|
|
# 用户模块
|
|
|
# D:\dsWork\YltProject\Ylt\ms-user\src\main\java\com\charge\rpc\web\UserRpcApiController.java
|
|
|
userapi:
|
|
|
ribbon:
|
|
|
listOfServers: http://ms-user:7022
|
|
|
|
|
|
# 订单后台模块
|
|
|
orderbkapi:
|
|
|
ribbon:
|
|
|
listOfServers: http://ms-admin:7011
|
|
|
|
|
|
#分发模块
|
|
|
distribute:
|
|
|
ribbon:
|
|
|
listOfServers: http://ms-distribute:7012
|
|
|
|
|
|
# 财务模块
|
|
|
financeapi:
|
|
|
ribbon:
|
|
|
listOfServers: http://ms-finance:7014
|
|
|
|
|
|
# 充电站模块
|
|
|
stationapi:
|
|
|
ribbon:
|
|
|
listOfServers: http://ms-station:7020
|
|
|
|
|
|
# 协议模块
|
|
|
protocolapi:
|
|
|
ribbon:
|
|
|
listOfServers: http://ms-protocol:7024
|
|
|
|
|
|
# 通知模块
|
|
|
cheweiapi:
|
|
|
ribbon:
|
|
|
listOfServers: http://cz.api.cheweiguanjia.com
|
|
|
|
|
|
# 互联互通模块
|
|
|
openapi:
|
|
|
ribbon:
|
|
|
listOfServers: http://ms-openapi:7016
|
|
|
|
|
|
# 通知模块
|
|
|
noticeapi:
|
|
|
ribbon:
|
|
|
listOfServers: http://i100c.3322.org:30745
|
|
|
|
|
|
|
|
|
|
|
|
# 订单模块
|
|
|
orderapi:
|
|
|
ribbon:
|
|
|
listOfServers: http://ms-order:7017
|
|
|
|
|
|
|
|
|
#protocolshenghongapi:
|
|
|
# ribbon:
|
|
|
# listOfServers: http://i100c.3322.org:31766
|
|
|
|
|
|
taskapi:
|
|
|
ribbon:
|
|
|
listOfServers: http://ms-task:7021
|
|
|
|
|
|
#walletapi:
|
|
|
# ribbon:
|
|
|
# listOfServers: http://i100c.3322.org:30723
|
|
|
|
|
|
#websocketocppapi:
|
|
|
# ribbon:
|
|
|
# listOfServers: http://i100c.3322.org:30725
|
|
|
|
|
|
#mgrapi:
|
|
|
# ribbon:
|
|
|
# listOfServers: http://ms-saas-mgr:7026
|
|
|
|
|
|
#excelapi:
|
|
|
# ribbon:
|
|
|
# listOfServers: http://i100c.3322.org:30326
|
|
|
|
|
|
|
|
|
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: false #配置HystrixCommand的执行是否启用超时时间
|
|
|
isolation:
|
|
|
thread:
|
|
|
timeoutInMilliseconds: 80000 #配置HystrixCommand执行的超时时间,执行超过该时间会进行服务降级处理 80s
|
|
|
|
|
|
# 配置连接到Redis
|
|
|
spring:
|
|
|
redis:
|
|
|
database: 0
|
|
|
host: 10.10.14.210
|
|
|
port: 6379
|
|
|
password: ylt#redis
|
|
|
timeout: 0
|
|
|
pool:
|
|
|
max-active: 8
|
|
|
max-idle: 8
|
|
|
min-idle: 0
|
|
|
|
|
|
# Dinger(叮鸽),基于springboot实现的群机器人消息发送中间件入门使用
|
|
|
# https://blog.51cto.com/u_15891990/5908802
|
|
|
dinger:
|
|
|
project-id: ${spring.application.name}-${spring.profiles.active}
|
|
|
dingers:
|
|
|
# 使用钉钉机器人, 请根据自己机器人配置信息进行修改
|
|
|
dingtalk:
|
|
|
# tokenId是创建机器人的webhook
|
|
|
tokenId: ad3700d79705ea1502e57c5fa170fda23d5c6502f3d0410a66dbc2a8e1d06986
|
|
|
# secret是创建机器人的加签
|
|
|
secret: SEC167efa8be3412d3b9dbf87286d9b837836aabd79cf20f9966001333a287a39a5
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|