forked from rarias/nixos-riscv
examples: init
This commit is contained in:
18
examples/mosquitto.nix
Normal file
18
examples/mosquitto.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
networking.firewall.allowedTCPPorts = [ 1883 ];
|
||||
services.mosquitto = {
|
||||
enable = true;
|
||||
settings.max_keepalive = 300;
|
||||
listeners = [
|
||||
{
|
||||
port = 1883;
|
||||
omitPasswordAuth = true;
|
||||
users = {};
|
||||
settings = {
|
||||
allow_anonymous = true;
|
||||
};
|
||||
acl = [ "topic readwrite #" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user