Include host-fqdn in ssl cert for Jabber

This commit is contained in:
niten 2021-12-13 08:52:10 -08:00
parent 20ee2b6f06
commit d98115d854
1 changed files with 4 additions and 1 deletions

View File

@ -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;