Skip to content

fix(scripts): patch nginx proxy_pass for non-default CXDB HTTP port#52

Open
thewoolleyman wants to merge 7 commits intodanshapiro:mainfrom
thewoolleyman:fix/nginx-proxy-port-mismatch
Open

fix(scripts): patch nginx proxy_pass for non-default CXDB HTTP port#52
thewoolleyman wants to merge 7 commits intodanshapiro:mainfrom
thewoolleyman:fix/nginx-proxy-port-mismatch

Conversation

@thewoolleyman
Copy link
Contributor

Summary

  • The CXDB Docker image bakes nginx with proxy_pass targeting the default HTTP port (9010)
  • When KILROY_CXDB_HTTP_BASE_URL uses a different port, nginx returns 502 for all API requests, the in-container healthcheck fails, and the UI shows "Offline"
  • After container start, detect the port mismatch and patch nginx.conf before the health poll begins

Test plan

  • Start CXDB with non-default ports (e.g. KILROY_CXDB_HTTP_BASE_URL=http://127.0.0.1:9110) and verify the UI on the nginx port shows "Online"
  • Start CXDB with default ports and verify no patch is applied (idempotent)
  • Restart an existing container with non-default ports and verify nginx is re-patched

🤖 Generated with Claude Code

thewoolleyman and others added 7 commits February 22, 2026 02:37
…ault

Make max_tokens configurable at three levels (node attr > stylesheet >
provider default) following the existing reasoning_effort pattern. Bump
the Anthropic adapter default from 4096 to 65536 so large tool calls
(e.g. write_file with 80KB+ content) are not truncated mid-JSON.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Detect `cd /absolute/path` in tool_command at both validation time
(lint rule) and runtime (warnEngine), preventing silent worktree CWD
overrides.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… and artifacts

Enriches the one-shot status command with stage trace from progress.ndjson,
completed nodes and retry counts from checkpoint.json, final commit SHA and
CXDB context ID from final.json, and postmortem/review text from worktree
artifacts. JSON output includes verbose fields automatically via struct
serialization.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Background daemons (e.g. pg_ctl start) can hold stdout/stderr pipes
open after the parent exits successfully, causing Go's cmd.Wait() to
return ErrWaitDelay. This is not a real failure — the setup command
itself completed with exit code 0.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… port

The CXDB Docker image bakes nginx with proxy_pass targeting the default
HTTP port (9010). When KILROY_CXDB_HTTP_BASE_URL uses a different port,
nginx returns 502 for all API requests, the in-container healthcheck
fails, and the UI shows "Offline".

After container start, detect the mismatch and sed the correct port
into nginx.conf before the health poll begins.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant