Skip to content

Document Traefik nxmeta-web rationale in compose example - #386

Merged
ptr727 merged 2 commits into
developfrom
doc-nxmeta-web-rationale
May 25, 2026
Merged

ptr727 merged 2 commits into
developfrom
doc-nxmeta-web-rationale

Conversation

@ptr727

@ptr727 ptr727 commented May 25, 2026

Copy link
Copy Markdown
Owner

Summary

Copilot flagged on PR #381 (round-5 and round-6) that the production compose example uses service/hostname nxmeta but the Traefik HostRegexp matches ^nxmeta-web.... The reviewer's concern was that the example would be unreachable through Traefik.

The mismatch is intentional. The container is multi-homed:

  • Bare nxmeta resolves to the dedicated macvlan IP set via ${NXMETA_IP} / ${NXMETA_MAC} in the compose, used for direct access.
  • nxmeta-web is a CNAME pointing at the Traefik host for SSL termination. Only the -web hostname is fronted by Traefik; the bare hostname bypasses it.

This is the real-world pattern from the user's homelab. Without the inline rationale, future readers (and future automated reviews) hit the same question.

Change

Four lines of comment in README.md inside the Traefik labels block.

Test plan

  • Markdown rendering checked — comment lines render as part of the YAML fenced block.
  • CI matrix passes.

Copilot flagged on PR #381 that the production compose example uses
service/hostname `nxmeta` but the Traefik HostRegexp matches
`^nxmeta-web...`, asking whether they should match. They shouldn't:
the container is multi-homed — bare `nxmeta` resolves to the
dedicated macvlan IP for direct access, while `nxmeta-web` is a CNAME
pointing at Traefik for the SSL frontend. Traefik handles only the
`-web` hostname; the bare hostname bypasses it.

Add four lines of inline comment in the compose example so future
readers (and future automated reviews) don't ask the same question.
Copilot AI review requested due to automatic review settings May 25, 2026 17:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds inline documentation to the production Docker Compose example in README.md explaining why the Traefik router matches nxmeta-web... while the service/hostname is nxmeta, aligning the example with the real-world “direct macvlan access + Traefik-terminated web hostname” setup.

Changes:

  • Document the intended nxmeta (direct/macvlan) vs nxmeta-web (Traefik/SSL) hostname split directly inside the Traefik labels block.

Comment thread README.md Resolved
Copilot caught that "bare nxmeta resolves to the dedicated macvlan IP
above" oversold what `hostname:` + `ipv4_address:` do — they only set
the container's own hostname and bind it to that IP. The DNS records
that make `nxmeta` and `nxmeta-web` actually resolve from clients
must be configured externally (LAN DNS or hosts file). Rewrite the
comment to call out that the two-hostname pattern is a DNS
configuration the user provides, with concrete shapes for both
records.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@ptr727
ptr727 merged commit 28c3da3 into develop May 25, 2026
40 checks passed
@ptr727
ptr727 deleted the doc-nxmeta-web-rationale branch May 25, 2026 17:42
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.

2 participants