summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack/mqtt.nix
blob: 8e5438db2af6489045b05c4eb34dcdff2225e014 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
  networking.firewall.allowedTCPPorts = [ 1883 ];
  networking.firewall.allowedUDPPorts = [ 1883 ];
  services.mosquitto = {
    enable = true;
    host = "0.0.0.0";
    users = {};
    # TODO: secure that shit
    aclExtraConf = ''
      pattern readwrite #
    '';
    allowAnonymous = true;
  };
}