Skip to content

Fix Traefik routing/cert issues from access logs - #1108

Merged
kylegordon merged 1 commit into
masterfrom
fix-traefik-routing-issues
Aug 17, 2026
Merged

Fix Traefik routing/cert issues from access logs#1108
kylegordon merged 1 commit into
masterfrom
fix-traefik-routing-issues

Conversation

@kylegordon

@kylegordon kylegordon commented Aug 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • hasecure (home-assistant): drop the bare-IP Host() alternative — Let's Encrypt was rejecting the bundled SAN cert request because 172.24.32.13 is an RFC1918 private address, breaking renewal on every attempt.
  • HA-MCP: remove the leftover 9584:9584/tcp port mapping in home-assistant's compose file now that HA-MCP has been decommissioned (repo-side stack removed in 45ffe79, container stopped on the host).
  • cerebro (elk-stack): add the missing loadbalancer.server.port label — Traefik couldn't determine the port and logged "port is missing" on every provider poll.
  • calibre-http: pin the redirect router to the calibre service — Traefik couldn't auto-resolve it since the container also exposes calibre-web-https, so the plain-HTTP→HTTPS redirect wasn't working.
  • matter-hub: it runs with network_mode: host (needed for Matter/mDNS discovery on the LAN), so Traefik's Docker provider has no container network to detect an IP from. Replaced the no-op traefik.docker.network label + plain server.port with an explicit loadbalancer.server.url pinned to the host IP (supported since Traefik 3.4, this repo runs 3.7.10), and dropped the same bare-IP Host() pattern as hasecure.

All were identified from repeating errors/warnings in the Traefik container logs.

Test plan

  • docker compose -f home-assistant/docker-compose.yaml config --quiet — same pre-existing external-network warning as before edits, no new errors
  • docker compose -f elk-stack/docker-compose.yaml config --quiet — clean
  • docker compose -f calibre/docker-compose.yaml config --quiet — clean
  • docker compose -f matter-hub/docker-compose.yaml config --quiet — clean
  • Deploy and confirm Traefik logs no longer show the ACME/port/service/network errors for these routers, and matter-hub is still reachable at matter-hub.viewpoint.house

🤖 Generated with Claude Code

- hasecure: drop the bare-IP Host() alternative, which was causing
  Let's Encrypt to reject the bundled SAN cert request for
  172.24.32.13 (RFC1918 private IP) on every renewal attempt
- home-assistant: remove the leftover 9584 HA-MCP port mapping now
  that HA-MCP has been decommissioned and its container stopped
- cerebro: add explicit loadbalancer port so Traefik stops erroring
  with "port is missing" on every provider poll
- calibre-http: pin the redirect router to the calibre service so
  Traefik can resolve it instead of erroring on the service ambiguity
  with calibre-web-https

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@kylegordon
kylegordon merged commit bd3ff43 into master Aug 17, 2026
5 checks passed
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