kotori icon indicating copy to clipboard operation
kotori copied to clipboard

Connecting to multiple MQTT brokers

Open amotl opened this issue 3 years ago • 2 comments
trafficstars

Hi there. People asked about whether it would be possible to connect Kotori to multiple MQTT brokers.

amotl avatar Feb 14 '22 22:02 amotl

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.

amotl avatar Feb 14 '22 22:02 amotl

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.

amotl avatar Feb 14 '22 23:02 amotl