From 451719ee2e6b2901867d23053ccf079b2c278882 Mon Sep 17 00:00:00 2001 From: Astro Date: Sun, 17 Jul 2022 02:00:55 +0200 Subject: [PATCH] broker: listen on both ipv4 and ipv6 though sysctl net.ipv6.bindv6only is already at 0 --- hosts/containers/broker/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hosts/containers/broker/default.nix b/hosts/containers/broker/default.nix index e1f88b34..2feef667 100644 --- a/hosts/containers/broker/default.nix +++ b/hosts/containers/broker/default.nix @@ -68,9 +68,21 @@ in }; in [ { + address = "0.0.0.0"; + port = 1883; + inherit users; + } { address = "::"; port = 1883; inherit users; + } { + address = "0.0.0.0"; + port = 8883; + settings = { + certfile = "/run/credentials/mosquitto.service/cert.pem"; + keyfile = "/run/credentials/mosquitto.service/key.pem"; + }; + inherit users; } { address = "::"; port = 8883;