No description
Find a file
Tamjid Rahman d7de2c651f cloud-init: install consul-template, render Caddyfile from home Consul
Replaces the hand-written git/s3/vault vhost blocks with a single
import of /etc/caddy/Caddyfile.dynamic, which consul-template renders
from the home Consul catalog over Tailscale MagicDNS (`http://nixos:8500`).

Each public service registers in Consul with a `meta.public_hostnames`
field — the relay picks it up and emits a reverse_proxy block
automatically, with correct SNI for the home Caddy.

cloud-init only runs on first boot, so applied to the existing relay-3
manually via SSH. Future re-provisions get it baked in.

TODO: pull Consul addr from Vault once AppRole is wired up on the relay.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-31 14:17:09 -04:00
terraform cloud-init: install consul-template, render Caddyfile from home Consul 2026-05-31 14:17:09 -04:00
.gitignore relay: switch from NixOS + nixos-anywhere to Debian + cloud-init 2026-05-31 00:18:38 -04:00