From 525fe006e9988049c7148b2a3bedc1579149e489 Mon Sep 17 00:00:00 2001 From: Thomas Reitz Date: Tue, 10 Mar 2026 17:39:51 +0100 Subject: [PATCH] fix(crm): add Host rule and priority to Traefik router Core-api router with Host+PathPrefix(/api) was catching CRM requests. Added Host rule and priority=100 to ensure CRM router takes precedence for /api/v1/crm/* paths. Co-Authored-By: Claude Opus 4.6 --- docker-compose.crm.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.crm.yml b/docker-compose.crm.yml index 3764bef..fa4afa4 100644 --- a/docker-compose.crm.yml +++ b/docker-compose.crm.yml @@ -34,7 +34,8 @@ services: - insight-cache labels: - "traefik.enable=true" - - "traefik.http.routers.crm.rule=PathPrefix(`/api/v1/crm`)" + - "traefik.http.routers.crm.rule=Host(`172.20.10.59`) && PathPrefix(`/api/v1/crm`)" + - "traefik.http.routers.crm.priority=100" - "traefik.http.routers.crm.entrypoints=web" - "traefik.http.services.crm.loadbalancer.server.port=3100" - "traefik.http.routers.crm.middlewares=cors-api@file,security-headers@file"