36 lines
598 B
Nix
36 lines
598 B
Nix
{ ... }:
|
|
|
|
{
|
|
services.mosquitto = {
|
|
enable = true;
|
|
listeners = [
|
|
{
|
|
port = 1883;
|
|
settings = {
|
|
ptotocol = "mqtt";
|
|
};
|
|
}
|
|
{
|
|
port = 8083;
|
|
settings = {
|
|
protocol = "websockets";
|
|
};
|
|
}
|
|
];
|
|
settings = {
|
|
allow_zero_length_clientid = true;
|
|
autosave_interval = 1800;
|
|
autosave_on_changes = true;
|
|
connection_messages = true;
|
|
allow_anonymous = true;
|
|
};
|
|
logDest = "stdout";
|
|
logType = [
|
|
"error"
|
|
"warning"
|
|
"notice"
|
|
"information"
|
|
];
|
|
};
|
|
}
|
|
|