Skip to content

feat(edge): serve the carrel.winlab.tw page beside the control plane - #36

Merged
zyx1121 merged 3 commits into
mainfrom
feat/site-route
Oct 13, 2026
Merged

zyx1121 merged 3 commits into
mainfrom
feat/site-route

Conversation

@zyx1121

@zyx1121 zyx1121 commented Oct 13, 2026

Copy link
Copy Markdown
Member

Why

carrel.winlab.tw answers 404 on /. The new public page (NYCU-WinLab/carrel.winlab.tw) should live there without touching Carrel's own routes.

What

scripts/edge-agent.py writes the CT 207 proxy config. Inside the carrel.winlab.tw host:

  • @control path /mcp /mcp/* /oauth/* /.well-known/* /healthz /internal/* /apps/* goes to the control plane exactly as before (same flush_interval -1, stream_close_delay 5m).
  • Every other path goes to the page at 10.10.10.117:3110 (VM 117 compose).

The path list is every route registered in internal/carrel/server.go and apps_http.go. The gateway (CT 200) block is unchanged.

Verified

  • pytest tests/test_edge_agent.py: 7 passed, including a new test that control paths are matched before the page.
  • Generated proxy Caddyfile passes caddy validate (caddy:2 image).
  • ruff check / ruff format --check on tests (the CI scope) pass.

🤖 Generated with Claude Code

zyx1121 and others added 3 commits October 13, 2026 22:35
Carrel answers only /mcp, /oauth/, /.well-known/, /healthz, /internal/ and
/apps/. Route those to the control plane as before and every other path on
carrel.winlab.tw to the public page on the compose host, instead of 404.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@zyx1121
zyx1121 merged commit 324af97 into main Oct 13, 2026
2 checks passed
@zyx1121
zyx1121 deleted the feat/site-route branch October 13, 2026 14:41
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