-
Notifications
You must be signed in to change notification settings - Fork 0
Mosquitto Example Configuration
I am using Mosquitto with ACL enabled as my MQTT broker. This page shows excerpts of my configuration which can help you to set up your installation. This page is not intended to be used a guide to fully setup Mosquitto. Please consult the Mosquitto configuration man page for more information.
/etc/mosquitto/mosquitto.conf
I enable anonymous access which is required for some consumers to successfully interact with the broker. The main configuration file also references the password database file as well as the ACL configuration file.
[...]
password_file /etc/mosquitto/passwd
acl_file /etc/mosquitto/acl
allow_anonymous true
/etc/mosquitto/passwd
You can generate a password in the format expected by Mosquitto using
sudo mosquitto_passwd -c /etc/mosquitto/passwd my-user
|
The target file is fully overwritten by each execution of the
|
Missing something?
If you think that this pages is incomplete or you cannot find the information you are looking for open, feel free to open an issue. Any contribution is of course also welcome!