application.yaml
1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
spring:
application:
name: iot-gateway-server
profiles:
active: local # 默认激活本地开发环境
--- #################### 消息队列相关 ####################
# rocketmq 配置项,对应 RocketMQProperties 配置类
rocketmq:
# Producer 配置项
producer:
group: ${spring.application.name}_PRODUCER # 生产者分组
--- #################### IoT 网关相关配置 ####################
yudao:
iot:
# 网关配置
gateway:
# 设备 RPC 配置
rpc:
connect-timeout: 30s
read-timeout: 30s
# 设备 Token 配置
token:
expiration: 7d
# 协议配置
protocol:
# ====================================
# 针对引入的 HTTP 组件的配置
# ====================================
http:
enabled: true
# ====================================
# 针对引入的 EMQX 组件的配置
# ====================================
emqx:
enabled: false
mqtt-ssl: false
mqtt-topics:
- "/sys/#" # 系统主题
# 消息总线配置
message-bus:
type: redis # 消息总线的类型
--- #################### 日志相关配置 ####################
# 基础日志配置
logging:
file:
name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径
level:
# 应用基础日志级别
cn.iocoder.yudao.module.iot.gateway: INFO
org.springframework.boot: INFO
# RocketMQ 日志
org.apache.rocketmq: WARN
# 根日志级别
root: INFO
debug: false