fix(compose): restore mobile pairing sidecar - #3627
Conversation
Signed-off-by: StephGlansberg <StephGlansberg@users.noreply.github.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: baac881a96
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| # Optional NIP-AB pairing sidecar. Start it with `--profile pairing`, then | ||
| # expose only its `/pair` route through a TLS reverse proxy. Never advertise | ||
| # this URL before the sidecar and proxy route are healthy. | ||
| # BUZZ_PAIRING_RELAY_URL=wss://buzz.example.com/pair |
There was a problem hiding this comment.
Route the advertised
/pair URL to the sidecar
When an operator enables this suggested URL with the bundled TLS flow (BUZZ_COMPOSE_TLS=true), deploy/compose/Caddyfile still sends every request—including /pair—to relay:3000, while the new sidecar is only published on a loopback host port. Consequently NIP-11 advertises a pairing URL that never reaches pairing-relay, so mobile pairing continues to fail; add a Caddy /pair matcher that proxies to pairing-relay:5000 before the catch-all relay route.
Useful? React with 👍 / 👎.
What changed
pairingCompose profile that runsbuzz-pair-relayfrom the pinned relay imageWhy
Desktop QR pairing advertises
/pair, but the local Compose stack did not run the pairing relay. Mobile clients therefore reached an HTTP 404 instead of a WebSocket upgrade. The profile is opt-in and does not alter the default relay stack.Validation
cargo test -p buzz-pair-relay— 51 integration tests passeddocker compose ... --profile pairing config --quietpairing-relaygit diff --check