2023-08-10 09:39:37 +08:00

45 lines
1.4 KiB
YAML

server:
port: 9999
spring:
profiles:
# 环境配置
active: dev
application:
name: qiuguo-iot-box-websocket
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: 192.168.8.101:8848
config:
# 配置中心地址
server-addr: 192.168.8.101:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
redis:
# cluster:
# nodes:
# - 127.0.0.1:7001
# - 127.0.0.1:7002
host: 192.168.8.101
port: 6379
password: 123456
timeout: 5000
r2dbc:
#注意下面修改 easyorm相关也需要修改
#url: r2dbc:postgresql://localhost:5432/postgres #postgresql请使用此配置
url: r2dbc:mysql://172.24.218.235:3306/qiuguo_iot?ssl=false&serverZoneId=Asia/Shanghai # mysql请使用此配置
#url: r2dbc:h2:file:///./data/h2db/jetlinks
username: root
password: '!pHuRvGKIsbiqcX1'
easyorm:
auto-ddl: false #是否根据实体类型更新数据库字段(增加、属性)
default-schema: qiuguo_iot # 默认使用的schema. mysql时则为数据库名
dialect: mysql # 方言: h2,mysql,postgresql
logging:
config: classpath:logback-${spring.profiles.active}.xml
device:
tokenkey: ZGV2aWNlX2luZm9fdG9rZW5fbWQ1LTNfb2Zpa19xaXVndW8taW90LWJveCY2Mis=