mosquitto: enable service
This commit is contained in:
parent
a0654b8f1d
commit
99c7fc0753
1 changed files with 10 additions and 12 deletions
|
@ -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/+" ];
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}];
|
}];
|
||||||
|
|
Loading…
Reference in a new issue