Commit Graph

6 Commits

Author SHA1 Message Date
4e2e0c9c5f Listen on 0.0.0.0 to ensure IPv4 connectivity
tronbyt.toes.local resolves to an IPv4 address while toes.local
uses IPv6, so the toes proxy couldn't reach the Bun server.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 17:34:07 -07:00
6774b456a9 Don't forward body for GET/HEAD requests in proxy
Passing req.body (a ReadableStream) for GET requests could cause
the unix socket fetch to hang waiting for body data, especially
when the upstream toes proxy has already stripped content-length.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 17:31:19 -07:00
89bf052ca1 Return 200 from /ok while Go server is still starting
Toes health-checks /ok during startup. The Go server can take a
while to become healthy (cloning system apps repo on first run),
so return 200 while the process is alive but not yet ready.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 17:19:27 -07:00
84ce472c87 Auto-download Go binary on startup and validate setup
The postinstall script doesn't run on toes (package.json is
transformed during deploy), so the binary was never downloaded.
Now the server downloads it from GitHub releases if missing.
Added validate() to catch missing DATA_DIR and non-executable
binary with clear error messages.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 17:16:05 -07:00
387f746f8c ok 2026-03-10 16:53:05 -07:00
ca13947bfb init 2026-03-10 16:07:23 -07:00