diff --git a/lib/fudo/jabber.nix b/lib/fudo/jabber.nix index 34b10d4..50e4c64 100644 --- a/lib/fudo/jabber.nix +++ b/lib/fudo/jabber.nix @@ -200,9 +200,12 @@ in { allowedTCPPorts = [ 5222 5223 5269 8010 ]; }; - fudo = { + fudo = let + host-fqdn = config.instance.host-fqdn; + in { acme.host-domains.${hostname} = mapAttrs (site: siteCfg: mkIf siteCfg.enableACME { + extra-domains = optional (site != host-fqdn) [ host-fqdn ]; local-copies.ejabberd = { user = cfg.user; group = cfg.group;