Add ACL for mosquitto

This commit is contained in:
Jordan Holt 2024-01-06 14:46:19 +00:00
parent e07bca10a1
commit cf33684ca0
Signed by: jordan
GPG Key ID: B8CFFF61F1CCF520

View File

@ -117,6 +117,7 @@
"radio_browser"
"scrape"
"sensor"
"system_health"
];
config = {
default_config = {};
@ -130,20 +131,8 @@
time_zone = config.time.timeZone;
unit_system = "metric";
};
mqtt = {
broker = "127.0.0.1";
port = 1883;
discovery = true;
client_id = "home-assistant-1";
birth_message = {
topic = "homeassistant/status";
payload = "online";
};
will_message = {
topic = "homeassistant/status";
payload = "offline";
};
};
mqtt = { };
system_health = { };
recorder = {
purge_keep_days = 365;
};
@ -153,6 +142,8 @@
services.mosquitto = {
enable = true;
listeners = [{
acl = [ "pattern readwrite #" ];
omitPasswordAuth = true;
port = 1883;
settings = {
allow_anonymous = true;