shard_core: add the /sundial traefik route (route only)#171
Open
ClaydeCode wants to merge 3 commits into
Open
Conversation
Add the sundial container (ghcr.io/freeshardbase/sundial:0.1.0) to the shard compose stack and route it at PathPrefix(/sundial) with priority 2 so it wins over web-terminal's PathPrefix(/) priority-1 catch-all. The router chains redirect-sundial-slash (RedirectRegex forcing bare /sundial to /sundial/) before strip-sundial (StripPrefix /sundial), because the Sundial image serves at root and derives its base path client-side from the browser URL: stripping lets the root-serving image work behind /sundial, and the trailing-slash redirect makes base detection resolve to /sundial/ instead of / (which would break asset links and fall through to web-terminal). Like web-terminal, the route is unauthenticated: Sundial is a public UI shell that itself calls the authed /core/protected API. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Drop the compose sundial service + the version bump. The deployed shard compose is owned by the controller (data/core-versions/<v>/docker-compose.yml, generated by new_core_version.py) — freeshard's docker-compose.yml is not shipped, so adding the service here is a no-op. The version is bumped at release, not during feature work. Only the traefik route (which ships in the shard_core image and is generated at runtime) belongs here. Co-Authored-By: Claude Opus 4.8 (1M context) <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.
Adds a traefik dynamic-config route so shards running this shard_core version serve Sundial at
/sundial, next to the legacy web-terminal.Scope: route only
shard_core/service/traefik_dynamic_config.py— asundialrouterPathPrefix(/sundial)at priority 2 (beats web-terminal's/at priority 1), middlewaresredirect-sundial-slash→strip-sundial, servicehttp://sundial:80/. Unauthenticated like web-terminal (public UI shell; it calls the authed/core/protected).tests/test_traefik_dyn_spec.py(green).Why strip + redirect: the Sundial image serves at root and derives its base path from the browser URL, so
StripPrefix(/sundial)lets the root-serving image work behind the subpath, and the bare-path redirect (/sundial→/sundial/) ensures base-detection resolves to/sundial/.Deliberately NOT in this PR
docker-compose.ymlservice — the deployed shard compose is controller-owned (data/core-versions/<v>/docker-compose.yml); freeshard's compose is a dev/reference file and isn't shipped. Thesundialcontainer is added controller-side. Sync gap tracked in FreeshardBase/freeshard-controller#399.🤖 Generated with Claude Code