萍乡河道项目,基于RIS的单体架构改进项目
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.

184 lines
4.8 KiB

#数据源配置
spring:
datasource:
dynamic:
enabled: true
primary: mysql #设置默认的数据源或者数据源组,默认值即为master
strict: true #设置严格模式,默认false不启动. 启动后在未匹配到指定数据源时候会抛出异常,不启动则使用默认数据源.
datasource:
mysql:
url: jdbc:mysql://127.0.0.1:3306/hzinfo_ris_pxhd?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
username: root
password: 123
slave:
url: jdbc:mysql://127.0.0.1:3306/hzinfo_ris_pxhd?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
username: root
password: 123
tdengine:
db-type: postgresql
driver-class-name: com.taosdata.jdbc.rs.RestfulDriver
url: jdbc:TAOS-RS://192.168.1.202:6041/hzinfo_data?timezone=UTC-8&charset=UTF-8&locale=en_US.UTF-8
username: root
password: taosdata
redis:
host: 127.0.0.1 #本地redis
port: 6379
password:
database: 0
ssl: false
timeout: 3000
jedis:
pool:
maxActive: 100
maxIdle: 50
maxWait: 1500
testOnBorrow: true
testOnReturn: true
blade:
notCkeckTenantId: "200000"
sdk:
signatrue:
enabled: false
analyze-data:
minute-days: 30
socond-hour: 6
day-day: 365
soe-shake:
open: true
second: 60
data:
sdk:
enabled: true
url: http://127.0.0.1:7502/api/hzinfo-data-config #nignx后台代理端口
appId: '1529342971768860673'
appSecret: 3b599c56a6c6c2d35dcfb7e63d04414f
backups: true
yc-batch-number: 50
yx-batch-number: 50
soe-batch-number: 20
stations:
- stationId: 999999
delay: 10
- stationId: 12345654321
delay: 10
- stationId: 999900000002
delay: 10
datasource:
socket:
tdengine:
url: ${spring.datasource.dynamic.datasource.tdengine.url}
username: ${spring.datasource.dynamic.datasource.tdengine.username}
password: ${spring.datasource.dynamic.datasource.tdengine.password}
mqtt:
enabled: true
userName: hzinfo
password: hz123456
urls: tcp://192.168.1.202:1883
# urls: tcp://192.168.65.86:1883
clientId: hzinfo_boot_mqtt
topicNames: topic_device_model,topic_hzinfo_props,topic_hzinfo_yx,topic_hzinfo_heart_beat,topic_hzinfo_control_return,topic_hzinfo_events_alarm,topic_hzinfo_events
file:
upload:
path: D:\\upload
excel:
excelUrl: D:\\upload\\excelResult
excelImage: D:\\upload\\excelResult\\excelImage
hzinfo:
task:
pdf:
# pdf模板路径 ,请配置绝对路径
# module-path: /data/inspect/pdf/templet/inspectObj.html # linux
module-path: D:\upload\hzinfo\pdf\templet\inspectObj.html # windows
# pdf文件存储路径,请配置绝对路径
# file-path: /data/inspect/pdf/file # linux
file-path: D:/upload/hzinfo/file # windows
hzims:
inspect:
task:
templateCode:
#巡检任务开始前发送短信信息阿里云模板
taskBegin: aliyun-task-begin
#巡检任务结束前发送短信信息阿里云模板
taskEnd: aliyun-task-end
#巡检消息推送模板 - 极光
jgPushCode: hzinfo-inspect
duty:
file-path: "D:/upload/duty"
sms:
aliyun:
templateCode:
warn: SMS_167050010
connectTimeout: 10000
readTimeout: 10000
accessKeyId: LTAIdaVZqHxfh10d
accessKeySecret: HLIrI0mGhGdlvnU1h64ewShSF58VGg
profilePoint: cn-changsha
endPoint: cn-changsha
signName: \u534E\u81EA\u79D1\u6280
emergency:
plan:
enable:
suffix: doc,docx,pdf,xls,xlsx,csv,jpg,png,mkv,mp3,mp4,wmv
hz3000:
runtime:
setting: D:/HZ3000/runtime/info/factory.fac
network:
windows: D:/hz3000/runtime/info/network.xml
linux: /home/hz3000/info/network.xml
#====linux====
dll:
path:
linux: /home/hz3000/dlls/sysdlls/
fiveprevention:
dll:
linux: libfiveprevention.so
read:
dll:
name:
linux: libReadData.so
write:
dll:
name:
linux: libWriteData.so
soe:
wait:
interval: 500
time: 120000
interval: 30000
show:
number: 10
expire:
time: 15
dynamic:
file:
path: D:\\nginx-1.18.0\\html\\HZInfo/hz3000data/
wd:
gisUrl: http://175.6.40.67:8053
areaCodes: 430225000000
areaCode: 430225000000
gisCodes: bigemap.bj8061hz
gisLevel: 2
stcd: 360301002
tencent:
push:
appId: 1580011926
secretKey: ae7e4b5fd20c3599113b6ebfbf82e7ea