Merge pull request 'mqtt_broker' (#9) from mqtt_broker into master
Reviewed-on: https://git.rz.ens.wtf/HackENS/hackens-org-configurations/pulls/9
This commit is contained in:
commit
42f69f6fc4
1 changed files with 20 additions and 0 deletions
20
hosts/hackens-org/mosquitto.nix
Normal file
20
hosts/hackens-org/mosquitto.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ ... }:
|
||||
let
|
||||
port = 1883;
|
||||
in
|
||||
{
|
||||
services.mosquitto = {
|
||||
enable = true;
|
||||
logType = [ "all" ];
|
||||
listeners = [
|
||||
{
|
||||
address = "0.0.0.0";
|
||||
port = port;
|
||||
settings = {
|
||||
allow_anonymous = true;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [ port ];
|
||||
}
|
Loading…
Reference in a new issue