-
-
Notifications
You must be signed in to change notification settings - Fork 169
/
config.yaml
96 lines (95 loc) · 3.09 KB
/
config.yaml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version: v0.0.1
system:
log:
console:
level: info # available levels: debug, info, warn, error, dpanic, panic, fatal
http:
defaultPort: 8080
plugins:
enabled:
- debug
- health
- systree
- prometheus
- persistence_bbolt
- auth_http
config:
monitoring:
- backend: systree
config:
interval: 1
- backend: prometheus
config:
path: "/metrics"
port: 8080
debug:
- backend: prof.profiler
config:
cmdline: true
cpu: true
mem: true
trace: true
block: 100000
mutex: 1000000
health:
- backend: health
config:
livenessEndpoint: live
readinessEndpoint: ready
persistence: # plugin type
- backend: bbolt # plugin internal name
config:
file: "/usr/lib/volantmq/persistence/data/bbolt.db"
auth: # plugin type
- name: internal # authenticator name, used by listeners
backend: simpleAuth # authenticator type
config:
users:
testuser: "9f735e0df9a1ddc702bf0a1a7b83033f9f7153a00c29de82cedadc9957289b05" # password must be sha-256 hashed
- name: http1
backend: http
config:
path:
user: http://localhost:6062/user
resource: http://localhost:6062/resource
auth:
anonymous: true
order:
- internal
mqtt:
version:
- v3.1.1
- v5.0
keepAlive:
period: 60 # KeepAlive The number of seconds to keep the connection live if there's no data.
# Default is 60 seconds
force: false # Force connection to use server keep alive interval (MQTT 5.0 only)
# Default is false
options:
connectTimeout: 5 # The number of seconds to wait for the CONNECT message before disconnecting.
# If not set then default to 2 seconds.
offlineQoS0: true # OfflineQoS0 tell server to either persist (true) or ignore (false) QoS 0 messages for non-clean sessions
# If not set than default is false
sessionPreempt: true # Either allow or deny replacing of existing session if there new client with same clientID
# If not set than default is false
retainAvailable: true # don't set to use default
subsOverlap: true # tells server how to handle overlapping subscriptions from within one client
# if true server will send only one publish with max subscribed QoS even there are n subscriptions
# if false server will send as many publishes as amount of subscriptions matching publish topic exists
# Default is false
subsId: true # don't set to use default
subsShared: false # don't set to use default
subsWildcard: true # don't set to use default
receiveMax: 65530 # don't set to use default
maxPacketSize: 268435455 # don't set to use default
maxTopicAlias: 65535 # don't set to use default
maxQoS: 2
listeners:
defaultAddr: "0.0.0.0" # default 127.0.0.1
mqtt:
tcp:
1883:
auth:
tls:
ws:
8883: