2019-07-19 22:10:16 +00:00
|
|
|
# hostname: mqtt.shack
|
2019-07-16 22:53:56 +00:00
|
|
|
{
|
2019-07-17 08:55:36 +00:00
|
|
|
networking.firewall.allowedTCPPorts = [ 1883 ];
|
|
|
|
networking.firewall.allowedUDPPorts = [ 1883 ];
|
2019-07-16 22:53:56 +00:00
|
|
|
services.mosquitto = {
|
|
|
|
enable = true;
|
|
|
|
host = "0.0.0.0";
|
|
|
|
users = {};
|
|
|
|
# TODO: secure that shit
|
|
|
|
aclExtraConf = ''
|
2019-07-17 08:55:36 +00:00
|
|
|
pattern readwrite #
|
2019-07-16 22:53:56 +00:00
|
|
|
'';
|
|
|
|
allowAnonymous = true;
|
|
|
|
};
|
|
|
|
}
|