123 lines
3.8 KiB
YAML
123 lines
3.8 KiB
YAML
#spring:
|
|
# datasource:
|
|
## url: jdbc:mysql://${zlt.datasource.ip}:3306/device-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai
|
|
# url: jdbc:mysql://${zlt.datasource.ip}/device-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai
|
|
# username: ${zlt.datasource.username}
|
|
# password: ${zlt.datasource.password}
|
|
# driver-class-name: com.mysql.cj.jdbc.Driver
|
|
#
|
|
#mybatis-plus:
|
|
# mapper-locations: classpath:/mapper/*Mapper.xml
|
|
# #实体扫描,多个package用逗号或者分号分隔
|
|
# typeAliasesPackage: com.central.device.model
|
|
# global-config:
|
|
# db-config:
|
|
# id-type: auto
|
|
#
|
|
#springdoc:
|
|
# group-configs:
|
|
# - group: 'default'
|
|
# paths-to-match: '/**'
|
|
# packages-to-scan: com.central.device.controller
|
|
#
|
|
#knife4j:
|
|
# enable: true
|
|
# setting:
|
|
# swagger-model-name: 设备中心接口文档
|
|
#
|
|
#jetlinks:
|
|
# clientId: WFMfEGS8iHrEPRBH
|
|
# secureKey: ihat3zHC6T7xPZYFAEnG3tExQiFANd2n
|
|
# server:
|
|
# baseUrl: http://119.45.169.13:8848/
|
|
#
|
|
# #审计日志
|
|
## audit-log:
|
|
## enabled: true
|
|
## log-type: db
|
|
## datasource:
|
|
## driver-class-name: com.mysql.cj.jdbc.Driver
|
|
## jdbc-url: jdbc:mysql://${zlt.datasource.ip}:3306/logger-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai
|
|
## username: ${zlt.datasource.username}
|
|
## password: ${zlt.datasource.password}
|
|
#tencent:
|
|
# live:
|
|
# push-domain: 208280.push.tlivecloud.com
|
|
# play-domain: goflytec.com
|
|
# expire-seconds: 3600 #过期时间为1小时
|
|
# app-name: live
|
|
# key: 06b20e5b7d637c1128fa1b48ea91a13e
|
|
#
|
|
#zlt:
|
|
# #多租户配置
|
|
# tenant:
|
|
# enable: false
|
|
# ignoreTables:
|
|
# ignoreSqls:
|
|
# noIgnoreSqls:
|
|
# - com.central.device.mapper.AgeDeviceMapper.findList
|
|
# - com.central.device.mapper.LineFileMapper.findList
|
|
|
|
# 设备WebSocket配置
|
|
device:
|
|
websocket:
|
|
# OAuth2 Token端点
|
|
oauth2:
|
|
token-url: http://119.45.169.13:8848/oauth2/token
|
|
client-id: WFMfEGS8iHrEPRBH
|
|
client-secret: ihat3zHC6T7xPZYFAEnG3tExQiFANd2n
|
|
|
|
# WebSocket连接配置
|
|
connection:
|
|
base-url: ws://119.45.169.13:8848/messaging
|
|
connect-timeout: 10000 # 连接超时(ms)
|
|
read-timeout: 60000 # 读取超时(ms)
|
|
|
|
# 心跳配置
|
|
heartbeat:
|
|
enabled: true
|
|
interval: 30000 # 心跳间隔(ms)
|
|
|
|
# 重连配置
|
|
reconnect:
|
|
enabled: true
|
|
max-attempts: 10 # 最大重连次数(0=无限)
|
|
initial-delay: 2000 # 初始延迟(ms)
|
|
max-delay: 60000 # 最大延迟(ms)
|
|
multiplier: 2 # 延迟倍数
|
|
|
|
# 按需订阅配置
|
|
subscribe:
|
|
batch-size: 50 # 每批订阅数量
|
|
batch-interval: 500 # 批次间隔(ms)
|
|
on-demand: true # 按需订阅模式
|
|
|
|
# 设备超时配置
|
|
timeout:
|
|
offline-threshold: 60000 # 设备离线判定阈值(ms)
|
|
check-interval: 10000 # 超时检查间隔(ms)
|
|
|
|
# 命令配置
|
|
command:
|
|
default-timeout: 60000 # 命令默认超时时间(ms)
|
|
max-retry: 3 # 最大重试次数
|
|
retry-delay-base: 1000 # 重试基础延迟(ms)
|
|
queue-max-size: 100 # 每个设备命令队列最大长度
|
|
cleanup-interval: 10000 # 过期命令清理间隔(ms)
|
|
|
|
# SSE配置
|
|
sse:
|
|
# 超时时间(0=永不超时)
|
|
timeout: 0
|
|
# 心跳配置
|
|
heartbeat:
|
|
enabled: true
|
|
interval: 30000 # 心跳间隔(ms)
|
|
|
|
# 客户端接口放行(无需认证)
|
|
zlt:
|
|
security:
|
|
ignore:
|
|
httpUrls:
|
|
- /client/**
|