diff options
author | makefu <github@syntax-fehler.de> | 2019-07-17 00:53:56 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2019-07-17 00:53:56 +0200 |
commit | c38f02c4d7a09cd8a1fd50b68f08338ae54a82bb (patch) | |
tree | 6a8909c842a7c2effa98da6f7a974116bf903fe1 /krebs/2configs/shack/mqtt.nix | |
parent | 31944ce77dfd63f0778952b6ae5a29f7ae8a0cab (diff) |
shack/s3-power: update revision
Diffstat (limited to 'krebs/2configs/shack/mqtt.nix')
-rw-r--r-- | krebs/2configs/shack/mqtt.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/krebs/2configs/shack/mqtt.nix b/krebs/2configs/shack/mqtt.nix new file mode 100644 index 000000000..5e7a1af7c --- /dev/null +++ b/krebs/2configs/shack/mqtt.nix @@ -0,0 +1,14 @@ +{ + network.firewall.allowedTCPPorts = [ 1883 ]; + network.firewall.allowedUDPPorts = [ 1883 ]; + services.mosquitto = { + enable = true; + host = "0.0.0.0"; + users = {}; + # TODO: secure that shit + aclExtraConf = '' + pattern readwrite /# + ''; + allowAnonymous = true; + }; +} |