MQTT-broker konfiguration

Vår MQTT-broker är en Mosquitto-server som rullar på en Debian 12 server. Mosquitto finns i Debians egna repostiory så det är bara att installera den med apt.

Själva konfigurationen är följande:

/etc/mosquitto/conf.d/custom.conf
connection_messages true
listener 8883 0.0.0.0
certfile /etc/mosquitto/certs/fullchain1.pem
keyfile /etc/mosquitto/certs/privkey1.pem
dhparamfile /etc/mosquitto/conf.d/dhparam.pem
#log_type all

listener 1883 0.0.0.0
allow_anonymous false

password_file /etc/mosquitto/msh
acl_file /etc/mosquitto/acl

# bridge-configurations
connection liamcottle
bridge_cafile /etc/ssl/certs/ca-certificates.crt
address mqtt.meshtastic.liamcottle.net:8883
topic msh/#
cleansession false
notifications false
remote_clientid meshatSE
remote_password uplink
remote_username uplink
start_type automatic

connection meshtasticmqtt
bridge_cafile /etc/ssl/certs/ca-certificates.crt
address mqtt.meshtastic.org:8883
topic msh/# out
cleansession false
notifications false
remote_clientid meshatSEBroker
remote_password large4cats
remote_username meshdev
start_type automatic
/etc/mosquitto/acl
user msh
topic sthlmmesh/#
topic msh/#
topic meshse/#
topic mshse/#