95 lines
2.0 KiB
YAML
95 lines
2.0 KiB
YAML
server:
|
|
port: 8080
|
|
servlet:
|
|
session:
|
|
timeout: 43200s
|
|
spring:
|
|
datasource:
|
|
nama: xiuosiot
|
|
type: com.zaxxer.hikari.HikariDataSource
|
|
driver-class-name: org.postgresql.Driver
|
|
url: jdbc:postgresql://localhost:5432/xiuosiot
|
|
username: xiuosiot
|
|
password: 123456
|
|
hikari:
|
|
minimum-idle: 5
|
|
maximum-pool-size: 10
|
|
idle-timeout: 30000
|
|
max-lifetime: 90000
|
|
connection-timeout: 30000
|
|
connection-test-query: select 'x'
|
|
pool-name: xiuosiots
|
|
password: 123456
|
|
jdbc-url: jdbc:postgresql://localhost:5432/xiuosiot
|
|
|
|
# 发送邮件配置
|
|
mail:
|
|
host: smtp.qq.com # 配置 smtp 服务器地址
|
|
port: 587 # smtp 服务器的端口
|
|
username: 419034340@qq.com # 配置邮箱用户名(你的邮箱地址)
|
|
password: hcoazwtzeofnbidh # 配置申请到的授权码
|
|
default-encoding: UTF-8 # 配置邮件编码
|
|
properties:
|
|
mail:
|
|
smtp:
|
|
socketFactoryClass: javax.net.ssl.SSLSocketFactory # 配饰 SSL 加密工厂
|
|
debug: true
|
|
|
|
redis:
|
|
database: 1
|
|
host: 115.238.53.59
|
|
port: 6379
|
|
password: abc123
|
|
jedis:
|
|
pool:
|
|
max-active: 8
|
|
max-wait: 1
|
|
max-idle: 10
|
|
min-idle: 2
|
|
timeout: 6000
|
|
|
|
config:
|
|
activate:
|
|
on-profile: local
|
|
|
|
|
|
mybatis:
|
|
configuration:
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
map-underscore-to-camel-case: true
|
|
mapper-locations: classpath:mappers/*.xml
|
|
|
|
#MQTT Config
|
|
mqtt:
|
|
#MQTT-服务器连接地
|
|
hostUrl: tcp://115.238.53.59:1883
|
|
#MQTT-连接服务器默认客户端ID
|
|
clientId: local-xiuosiot
|
|
#MQTT-用户名
|
|
username: xiuosiot
|
|
#MQTT-密码
|
|
password: xiuosiot
|
|
#连接超时
|
|
timeout: 100
|
|
#设置会话心跳时间
|
|
keepalive: 100
|
|
#默认主题
|
|
default-topic: xiuosiot/#
|
|
#api key
|
|
apikey: 13e1c0be6d573f86
|
|
#secret key
|
|
secretkey: 9BLxyWslygS5oFTz8TX5ssJ7JMiBY9CefU9B35uWx3ltqN
|
|
#api url
|
|
apiurl: http://115.238.53.59:18083
|
|
|
|
tdengine:
|
|
url: jdbc:TAOS://taosnode1:6030/xiuosiot?user=root&password=taosdata
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|