--wip-- [skip ci]
This commit is contained in:
parent
a7b7632400
commit
34b8582144
1 changed files with 15 additions and 3 deletions
|
|
@ -74,12 +74,24 @@ in
|
|||
services = {
|
||||
mosquitto = {
|
||||
enable = true;
|
||||
# listeners = [{
|
||||
# address = "127.0.0.1";
|
||||
# port = 1883;
|
||||
# users.zigbee2mqtt = {
|
||||
# acl = [ "pattern readwrite #" ];
|
||||
# omitPasswordAuth = true;
|
||||
# };
|
||||
# }];
|
||||
listeners = [{
|
||||
address = "127.0.0.1";
|
||||
port = 1883;
|
||||
users.zigbee2mqtt = {
|
||||
acl = [ "pattern readwrite #" ];
|
||||
omitPasswordAuth = true;
|
||||
users.iotdevice = {
|
||||
acl = [
|
||||
"read IoT/device/action"
|
||||
"write IoT/device/observations"
|
||||
"write IoT/device/LW"
|
||||
];
|
||||
password = "mysweetpassword-or-use-hashedPassword";
|
||||
};
|
||||
}];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue