Host Caddy LAN proxy for Incus container services (flakes-68h7)
Add host-level Caddy reverse proxy to expose Incus container services to ZeroTier LAN via *.hostname.yjpark.org with Let’s Encrypt certs (Cloudflare DNS-01). Domain pattern: yolo-8080.edger.yjpark.org → http://10.100.0.100:8080.
Summary of Changes
Modified mixins/nixos/host/incus-ingress.nix:
- Added
pkgs.caddy.withPluginswith the Cloudflare DNS plugin (hash pinned tosha256-bL1cpMvDogD/...) - Added Caddyfile generation: HTTPS + HTTP fallback blocks, per-container
host_regexpmatchers - Added
sops.secrets."cloudflare-caddy-env"declaration pointing to./secrets/cloudflare-caddy.txt - Added
systemd.services.caddy.serviceConfig.EnvironmentFilefor the SOPS secret path - Added
services.firewalld.zones.public.services = ["http" "https"]
Pending user action: create mixins/nixos/host/secrets/cloudflare-caddy.txt as a SOPS-encrypted dotenv file containing CLOUDFLARE_API_TOKEN=<token>.