Add ACL for mosquitto
This commit is contained in:
parent
e07bca10a1
commit
cf33684ca0
@ -117,6 +117,7 @@
|
|||||||
"radio_browser"
|
"radio_browser"
|
||||||
"scrape"
|
"scrape"
|
||||||
"sensor"
|
"sensor"
|
||||||
|
"system_health"
|
||||||
];
|
];
|
||||||
config = {
|
config = {
|
||||||
default_config = {};
|
default_config = {};
|
||||||
@ -130,20 +131,8 @@
|
|||||||
time_zone = config.time.timeZone;
|
time_zone = config.time.timeZone;
|
||||||
unit_system = "metric";
|
unit_system = "metric";
|
||||||
};
|
};
|
||||||
mqtt = {
|
mqtt = { };
|
||||||
broker = "127.0.0.1";
|
system_health = { };
|
||||||
port = 1883;
|
|
||||||
discovery = true;
|
|
||||||
client_id = "home-assistant-1";
|
|
||||||
birth_message = {
|
|
||||||
topic = "homeassistant/status";
|
|
||||||
payload = "online";
|
|
||||||
};
|
|
||||||
will_message = {
|
|
||||||
topic = "homeassistant/status";
|
|
||||||
payload = "offline";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
recorder = {
|
recorder = {
|
||||||
purge_keep_days = 365;
|
purge_keep_days = 365;
|
||||||
};
|
};
|
||||||
@ -153,6 +142,8 @@
|
|||||||
services.mosquitto = {
|
services.mosquitto = {
|
||||||
enable = true;
|
enable = true;
|
||||||
listeners = [{
|
listeners = [{
|
||||||
|
acl = [ "pattern readwrite #" ];
|
||||||
|
omitPasswordAuth = true;
|
||||||
port = 1883;
|
port = 1883;
|
||||||
settings = {
|
settings = {
|
||||||
allow_anonymous = true;
|
allow_anonymous = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user