1
0
Fork 0

mosquitto: enable service

This commit is contained in:
Daniel Kempkens 2023-03-17 22:08:56 +01:00
parent a0654b8f1d
commit 99c7fc0753
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -40,20 +40,18 @@ in
}; };
services.mosquitto.listeners = [{ services.mosquitto.listeners = [{
weewx-private = { address = "0.0.0.0";
address = "0.0.0.0"; port = 1883;
port = 1883;
users = { users = {
weewx-proxy = { weewx-proxy = {
hashedPasswordFile = config.age.secrets.mosquitto-password-weewx-proxy.path; hashedPasswordFile = config.age.secrets.mosquitto-password-weewx-proxy.path;
acl = [ "write weewx/+" ]; acl = [ "write weewx/+" ];
}; };
weewx = { weewx = {
hashedPasswordFile = config.age.secrets.mosquitto-password-weewx.path; hashedPasswordFile = config.age.secrets.mosquitto-password-weewx.path;
acl = [ "read weewx/+" ]; acl = [ "read weewx/+" ];
};
}; };
}; };
}]; }];