{
"mqtt": {
"options": {
"// Optional MQTT Auth": "",
"username": "",
"password": "",
"// Optional TLS": "",
"ca_file": "ca.pem",
"key_file": "key.pem",
"cert_file": "cert.pem",
"// Unit: seconds (int), Optonal: defaults shown": "",
"keepalive_interval": 60,
"// Setting to 0 disable topic alias": "",
"topic_alias_max": 5
},
"// Config can be overwritten on broker level": "",
"brokers": [
{ "host": "localhost", "port": 1883 },
{ "host": "localhost", "port": 1883, "options": { "keepalive_interval": 30 } }
]
},
"// NOTE: Tunnel ID and MQTT topic are prepended to all IP packets": "",
"// Long IDs / topics will add significant overhead to traffic with many small packets": "",
"server": {
"// In bytes (Optional, default shown, must match client)": "",
"id_length": 4,
"topic": "zika/OjFcZWEAGy2E3Vkh",
"bind_cidr": "172.20.0.0/24"
},
"client": {
"bind_cidr": "172.20.0.0/24",
"tunnels": [
{
"topic": "zika/OjFcZWEAGy2E3Vkh",
"bind_addr": "172.20.0.2",
"// In bytes (Optional, default shown, must match server)": "",
"id_length": 4
}
]
}
}