Files
floci/src/main/java/io/github
Stuart Lang 9253ee82b0 fix(floci-ui): resolve readiness probe URL from container endpoint (#1471)
* fix(floci-ui): resolve readiness probe URL from container endpoint

Resolve the floci-ui readiness probe URL once at start/adopt time from the
sidecar's resolved EndpointInfo instead of branching on container detection
each probe. EndpointInfo already returns a Floci-reachable address —
localhost:hostPort natively, or the sidecar's container IP on the shared
Docker network when Floci runs in a container, where the published host port
is unreachable from inside.

* fix(floci-ui): set hostPort from bound endpoint natively, keep configured port in container

Address PR review: EndpointInfo.port() is the real host binding only in native
mode (and reflects dynamic port=0 allocation there). In container mode it is the
sidecar's internal port (4500), so the configured published port stays
authoritative for the browser redirect. Extract resolveHostPort() and use it in
both ensureStarted() and adoptExisting().
2026-06-23 00:41:40 -05:00
..