add mqtt broker
This commit is contained in:
parent
5d3cd24260
commit
b8d518e28d
1 changed files with 14 additions and 1 deletions
|
@ -7,7 +7,20 @@ let
|
|||
in {
|
||||
imports = [ ../nginx.nix ./virtualisation.nix ];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ port ];
|
||||
networking.firewall.allowedTCPPorts = [ port 1883 ];
|
||||
services.mosquitto = {
|
||||
enable = true;
|
||||
listeners = [
|
||||
{
|
||||
port = 1883;
|
||||
omitPasswordAuth = true;
|
||||
users = {};
|
||||
settings = {
|
||||
allow_anonymous = true;
|
||||
};
|
||||
acl = [ "topic readwrite #" ];
|
||||
}];
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
virtualHosts = {
|
||||
|
|
Loading…
Reference in a new issue