Commit Graph

5 Commits

Author SHA1 Message Date
Lars Nolden 58155dc737 switch to emqx
check / flake-check (push) Successful in 25s
deploy / deploy (push) Successful in 48s
2026-07-02 15:19:59 +02:00
Lars Nolden 08d9fc594e Fix invalid Caddyfile: put layer4 in globalConfig, not a 2nd global block
check / flake-check (push) Successful in 22s
deploy / deploy (push) Successful in 37s
The NixOS caddy module already emits one global options block (for `email`)
and appends extraConfig after it. gebos-caddy also prepended its own keyless
`{ layer4 { ... } }` block, so the rendered Caddyfile had two keyless blocks
and caddy rejected it: "server block without any key is global configuration,
and if used, it must be first" -> caddy.service failed -> mqtt-ingest
activation exited 4 and deploy-rs rolled back.

Move the layer4 directive into services.caddy.globalConfig so it lands inside
the module's single global block. Verified the rendered Caddyfile for
mqtt-ingest; app-host (http-only) output is unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 13:09:08 +02:00
Lars Nolden bf8b25f374 make caddy a L4 proxy to terminate TLS for HiveMQ 2026-06-29 17:23:02 +02:00
Lars Nolden 7579d4dcf5 change domains, ips and make flake check work 2026-06-26 16:12:57 +02:00
Klaus 2d57db8182 Add infrastructure skeleton for review (refs #21)
check / flake-check (pull_request) Has been cancelled
Lays out the agreed shape from the design discussion: one flake at the
root with three nixosConfigurations (mqtt-ingest, db-host, app-host),
vendored Supabase docker-compose pointed at the external db-host,
Caddy → Kong → PostgREST/GoTrue, a Go MQTT→Postgres ingester stub,
deploy-rs node map, and a Gitea Actions workflow that deploys in
db → app → ingest order on push to main.

No real implementation yet — every host module has TODOs marking the
gaps (real hardware config, actual hostnames, HiveMQ packaging,
vendor the full upstream Supabase compose, etc.).
2026-05-27 17:23:02 +00:00