fix(routing): rename main service app->pds so caddy resolves THIS stack on shared proxy #4
Reference in New Issue
Block a user
No description provided.
Delete Branch "ci/warm-routing-alias"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes the warm-domain HTTPS routing failure surfaced by the cc-ci canonical sweep (cold deploy is green, but the stable warm domain returns 000 on /xrpc/_health).
Root cause: the caddy sidecar uses on-demand TLS and calls
http://app:3000/tls-checkbefore issuing a cert. On a multi-tenant host every co-located stack aliases its main serviceappon the sharedproxyoverlay; caddy (attached to bothproxyandinternal) resolves bareappto a FOREIGN stack's endpoint (observed: caddy dialed proxy IPs 10.10.0.x belonging to other stacks; connection refused), so the tls-check fails, no cert is issued, and HTTPS is dead.Fix: give the PDS a unique
pdsalias on theinternalnetwork and point caddy'sreverse_proxy+on_demand_tls askatpds:3000.pdsexists only oninternal, so it always resolves to THIS stack's PDS. The service name staysapp(no downstream breakage).Verified by cc-ci on the warm-canonical deploy path (the cold per-run domain was never affected).
cc @trav @notplants
fix(routing): unique pds alias so caddy resolves THIS stack on shared proxyto fix(routing): rename main service app->pds so caddy resolves THIS stack on shared proxyfdbd1e2feeto11e41b059211e41b0592to4987ba91c7View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.