blumeops/fly
Erich Blume 0e23adcc71 Fix fly-deploy WARNING by starting nginx before Tailscale
The deploy WARNING ("app is not listening on the expected address") was
caused by a race: start.sh ran Tailscale setup (~5-10s) before starting
nginx, so Fly's post-start socket check found nothing on port 8080.

Fix by starting nginx first and deferring upstream DNS resolution to
request time via resolver + variable in proxy_pass. DNS results are
cached for 30s per worker to avoid per-request lookups.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 07:00:19 -08:00
..
alloy.river Restrict flyio-proxy ACLs to dedicated tag:flyio-target endpoints (#126) 2026-02-08 21:54:18 -08:00
Dockerfile Add Fly.io proxy observability via embedded Alloy (#123) 2026-02-08 10:05:38 -08:00
fly.toml Add Fly.io public reverse proxy for docs.eblu.me (#120) 2026-02-08 02:36:19 -08:00
nginx.conf Fix fly-deploy WARNING by starting nginx before Tailscale 2026-02-09 07:00:19 -08:00
start.sh Fix fly-deploy WARNING by starting nginx before Tailscale 2026-02-09 07:00:19 -08:00