Connecting to multiple MQTT brokers
amotl opened this issue · comments
Hi there. People asked about whether it would be possible to connect Kotori to multiple MQTT brokers. /cc @Tonkenfo
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.
Footnotes
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
Footnotes
-
In order to get a preview to this feature, run
git fetch; git switch multibroker
on your working tree. ↩