1
0
Fork 0
forked from lukas/nixos-config
nixos-config/hosts/blunix/localServices/traefik-xmpp-web.nix

18 lines
375 B
Nix

{ config, ... }:
{
services.traefik.dynamicConfigOptions.tcp = {
routers.xmpp-web = {
rule = "HostSNI(`chat.${config.domain}`)";
entryPoints = [ "websecure" ];
service = "xmpp-web";
tls.passthrough = true;
};
services.xmpp-web.loadBalancer.servers = [
{
address = "${config.tailnetIPs.pinix}:8443";
}
];
};
}