mqtt: migrate to new configuration format
This commit is contained in:
parent
cc0e4b76bf
commit
f6b3da8ef2
|
@ -2,12 +2,18 @@
|
|||
{
|
||||
services.mosquitto = {
|
||||
enable = true;
|
||||
host = "0.0.0.0";
|
||||
users = {};
|
||||
# TODO: secure that shit
|
||||
aclExtraConf = ''
|
||||
pattern readwrite #
|
||||
'';
|
||||
allowAnonymous = true;
|
||||
persistence = false;
|
||||
settings.max_keepalive = 60;
|
||||
listeners = [
|
||||
{
|
||||
port = 1883;
|
||||
omitPasswordAuth = true;
|
||||
users = {};
|
||||
settings = {
|
||||
allow_anonymous = true;
|
||||
};
|
||||
acl = [ "topic readwrite #" "pattern readwrite #" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue