1
0
Fork 0
forked from lukas/nixos-config
nixos-config/hosts/blunix/localServices/traefik-cal.nix
2026-07-28 14:50:42 +02:00

15 lines
381 B
Nix

{ config, ... }:
{
services.traefik.dynamicConfigOptions.http = {
routers.calendar-web = {
rule = "Host(`cal.${config.domain}`)";
entryPoints = [ "websecure" ];
service = "calendar-web";
tls.certResolver = "cloudflare";
};
services.calendar-web.loadBalancer.servers = [
{ url = "http://${config.tailnetIPs.pinix}:5001"; }
];
};
}