Skip to content

Report every endpoint of an instance - #8

Closed
CorentinFelten wants to merge 1 commit into
masterfrom
feat/all-connection-endpoints
Closed

CorentinFelten wants to merge 1 commit into
masterfrom
feat/all-connection-endpoints

Conversation

@CorentinFelten

Copy link
Copy Markdown
Owner

Connection info lists every endpoint of an instance, one per line, ordered by compose service: each Traefik-routed host as https:///, then each published port as ://: (protocol hint, or tcp/udp). Only the first container's endpoint was reported, so a web front end plus an SSH service showed only one of them. Only router .rule labels are read, so author-written Traefik labels no longer make the route random. Pairs with Zync's one-endpoint-per-line display (CorentinFelten/zync#1).

GetConnectionInfo returned at the first container that had a Traefik
router label or a published port, so an instance with several
user-facing services (e.g. a web front end and an SSH service, both
exposed with expose:) reported only one of them, whichever Ansible
listed first. To find a route, it also took the first
traefik.http.routers.* label of a map, in random order: with
author-written router labels besides the rule (entrypoints, tls,
middlewares), the route was found or missed at random.

It now goes through every container, ordered by compose service then
name, and lists each Host() of each router rule as https://<host>/,
then each published IPv4 port as <scheme>://<host>:<port> (the port's
protocol hint, or its protocol), one per line without duplicates.
Only .rule labels are read, and containers with traefik.enable=false
are skipped. An instance with a single endpoint reports it as before.
@CorentinFelten

Copy link
Copy Markdown
Owner Author

Superseded by #10, which combines all current changes into one PR.

@CorentinFelten
CorentinFelten deleted the feat/all-connection-endpoints branch October 2, 2026 04:48
CorentinFelten added a commit that referenced this pull request Nov 12, 2026
Changes on top of v0.7.4, bump to 0.7.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant