Repository navigation
feat(edge): serve the carrel.winlab.tw page beside the control plane - #36
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.pywrites the CT 207 proxy config. Inside thecarrel.winlab.twhost:@control path /mcp /mcp/* /oauth/* /.well-known/* /healthz /internal/* /apps/*goes to the control plane exactly as before (sameflush_interval -1,stream_close_delay 5m).10.10.10.117:3110(VM 117 compose).The path list is every route registered in
internal/carrel/server.goandapps_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.caddy validate(caddy:2 image).ruff check/ruff format --checkontests(the CI scope) pass.🤖 Generated with Claude Code