kotori
kotori copied to clipboard
Connecting to multiple MQTT brokers
Hi there. People asked about whether it would be possible to connect Kotori to multiple MQTT brokers.
Currently, only one MQTT broker can be configured within the main Kotori configuration file ^1. However, in theory, the machinery should be capable of handling connections to different MQTT brokers, one per tenant.
In theory, the machinery should be capable of handling connections to different MQTT brokers.
#83 makes it real [^1]. Just add a corresponding configuration snippet to your per-application settings, for example at /etc/kotori/apps-available/mqttkit.ini, like
[mqttkit-1:mqtt]
; Configure individual MQTT broker for this application.
; The option group prefix within `mqttkit-1:mqtt` must match
; the `realm` attribute of the application settings.
host = mqtt.example.org
port = 1883
username = foobar
password = secret
[^1]: In order to get a preview to this feature, run git fetch; git switch multibroker on your working tree.