This repository has been archived on 2026-09-17. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
nixos-config/hosts/blunix/localServices/traefik/cal.nix
pijukka 201aea3e87 docs: write pinix/blunix/user READMEs, reorganize blunix's traefik-*.nix
Three stub READMEs from the review notes now have real content: a
per-file service table for pinix and blunix localServices, and a
users overview (drone vs builder, and why the docker group is dead
weight on both -- docker.nix is commented out globally).

blunix's seven traefik-*.nix files (routes, per-service dynamic
config) moved into a traefik/ subfolder per the review's org
suggestion -- pure rename, no relative-path references between them,
confirmed by a bit-identical rebuild (same output store path before
and after). No deploy needed for this part.

Also: added the tailscaled-autoconnect boot-race fix from 5df6166 to
calendar/README.md (was undocumented there) and removed the two
now-answered "why does this file exist" / "needs updating" review
notes from WEBDAV-SMB.md and calendar/README.md.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-31 12:05:17 +02:00

24 lines
609 B
Nix

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