feat: app-named slugs and ls current-directory indicator#7
Merged
willisrocks merged 6 commits intomainfrom Mar 9, 2026
Merged
Conversation
Add implementation plan for changing URL format from
{slug}.{domain} to {slug}.{app-name}.{domain} where app-name
is derived from the git remote origin repo name, and for
adding a * indicator in devproxy ls for the current directory's
project.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Change URL format from {slug}.{appname}.{domain} (two subdomain
levels) to {slug}-{appname}.{domain} (single level) because RFC
6125 wildcard certs only match one DNS label. This eliminates the
need for cert changes entirely and simplifies the daemon side —
the composite slug is used as the Docker Compose project name,
so the existing com.docker.compose.project label already carries
the full routing key.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Move truncation from sanitize_subdomain into a new compose_slug
function that joins {random_slug}-{app_name} and truncates the
composite result to 63 chars (RFC 1035 DNS label limit). Prevents
overflow when the app name is long, since the composite could
otherwise exceed 63 chars.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
URLs now include the app/repo name: https://{slug}-{app-name}.{domain}
where app-name is derived from git remote origin (falling back to dir
name). The ls command marks the current directory's project with *.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Use char-based truncation in compose_slug to avoid potential panic
on multi-byte UTF-8 (composite[..63] -> chars().take(63))
- Restore colored (.cyan()) output in ls route lines
- Use dynamic column width in ls based on longest URL
- Use starts_with("* ") in tests instead of fragile contains("*")
- Move format_route_line into test module since run() inlines the
logic for colored output support
Co-Authored-By: Claude Opus 4.6 <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.
Summary
{random-slug}-{app-name}(e.g.swift-penguin-devproxy)devproxy lsmarks the current directory's project with*Test plan
cargo clippyclean (0 warnings)🤖 Generated with Claude Code