forked from lukas/nixos-config
18 lines
375 B
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";
|
|
}
|
|
];
|
|
};
|
|
}
|