Commit Graph
7 Commits
Author SHA1 Message Date
aiongg 8f62dc47fa Deploy: follow each sync invocation by polling, run containers with --init, lower sync memory, gate image-ID deploys on a test-host marker, pin the font index in versions.env 2026-10-27 05:40:41 +00:00
aiongg 996f74c9ed Deploy: stop the server with a longer timeout than its drain 2026-10-27 05:32:14 +00:00
aiongg 0482f9c56a Deploy: the server keys its rate limit on CF-Connecting-IP and caps its face cache 2026-10-27 05:32:14 +00:00
aiongg 16d326f530 Deploy: sideload images by ID, fonts volume with a daily sync timer, sync and index commands 2026-10-27 05:32:14 +00:00
aiongg 946044e50e Sync: remove incomplete generations at start, keep the rolled-back generation, clear stale failure report and root temp files 2026-10-27 04:57:57 +00:00
aiongg b22e4dc4f5 Dockerfile: base images as build arguments, rust:1-bookworm for the build stage
The build compiles HarfBuzz, so the build image needs g++.
2026-10-27 04:49:17 +00:00
aiongg 2c15d6a4c6 Deploy to a Flatcar host behind Cloudflare: systemd units, Caddy, firewall, deploy.sh (#3)
* Deploy to a Flatcar host: systemd units, Caddy, firewall, Butane config and deploy.sh

Containers run as systemd units, pinned by digest, hardened (nonroot, read-only root, no
capabilities, memory/CPU/pid limits). Caddy terminates TLS and serves only Cloudflare-forwarded
traffic. Flatcar stays on the LTS channel with reboots in a 04:00 UTC window. deploy.sh sets up
a host over SSH, deploys a new digest with automatic rollback when unhealthy, and renders an
Ignition config for new hosts from the same files.

* Deploy: let Caddy's binary exec with its file capability, drop HTTP/3, add a README

* Deploy: pull before switching, roll back on a failed restart, prune old images; Cloudflare origin pulls, range refresh timer, IPv4-only publishing

* Deploy README: Cloudflare ranges refresh daily

* Deploy README: production uses a per-zone origin-pull certificate
2026-10-26 23:05:57 -04:00