97 lines
2.2 KiB
Plaintext
97 lines
2.2 KiB
Plaintext
bridges.mqtt.emqx1 {
|
|
server = "mqtt-tcp://127.0.0.1:1883"
|
|
proto_ver = 5
|
|
keepalive = 60s
|
|
backoff_max = 60s
|
|
clean_start = false
|
|
username = username
|
|
password = passwd
|
|
|
|
conn_properties = {
|
|
maximum_packet_size = 1024
|
|
receive_maximum = 65535
|
|
topic_alias_maximum = 0
|
|
request_problem_infomation = 1
|
|
request_response_infomation = 0
|
|
session_expiry_interval = 0
|
|
user_property = {
|
|
key1 = value1
|
|
key2 = value2
|
|
}
|
|
}
|
|
|
|
will {
|
|
topic = "will_topic"
|
|
qos = 1
|
|
retain = false
|
|
payload = "will_message"
|
|
|
|
properties = {
|
|
payload_format_indicator = 0
|
|
message_expiry_interval = 0
|
|
content_type = ""
|
|
response_topic = ""
|
|
correlation_data = ""
|
|
will_delay_interval = 0
|
|
user_property = {
|
|
key1 = value1
|
|
key2 = value2
|
|
}
|
|
}
|
|
}
|
|
|
|
forwards = [
|
|
{
|
|
remote_topic = "fwd/topic1"
|
|
local_topic = "topic1"
|
|
}
|
|
{
|
|
remote_topic = "fwd/topic2"
|
|
local_topic = "topic2"
|
|
}
|
|
]
|
|
|
|
quic_keepalive = 120s
|
|
quic_idle_timeout = 120s
|
|
quic_discon_timeout = 20s
|
|
quic_handshake_timeout = 60s
|
|
quic_send_idle_timeout = 2s
|
|
quic_initial_rtt_ms = 800ms
|
|
quic_max_ack_delay_ms = 100ms
|
|
quic_multi_stream = false
|
|
quic_qos_priority = true
|
|
quic_0rtt = true
|
|
|
|
subscription = [
|
|
{
|
|
remote_topic = "cmd/topic3"
|
|
local_topic = "topic3"
|
|
qos = 1
|
|
}
|
|
{
|
|
remote_topic = "cmd/topic4"
|
|
local_topic = "topic4"
|
|
qos = 2
|
|
}
|
|
]
|
|
|
|
sub_properties {
|
|
identifier = 1
|
|
user_property = {
|
|
key1 = value1
|
|
key2 = value2
|
|
}
|
|
}
|
|
hybrid_bridging = false
|
|
hybrid_servers = ["mqtt-quic://127.1:14567", "mqtt-tcp://127.1:1883"]
|
|
max_parallel_processes = 2
|
|
max_send_queue_len = 32
|
|
max_recv_queue_len = 128
|
|
}
|
|
|
|
bridges.mqtt.cache {
|
|
disk_cache_size = 102400
|
|
flush_mem_threshold = 100
|
|
resend_interval = 5000
|
|
}
|