From ce1804298a734dcf02569eae8d3a8c522f409843 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Wed, 25 Feb 2026 08:08:31 +0100 Subject: [PATCH] feat: add wildcard subdomain routing for rSpace spaces All registered spaces (e.g. demo.rfunds-online.online) now route to this app at Traefik priority 100. Bare domain stays at priority 120. Co-Authored-By: Claude Opus 4.6 --- docker-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 366c6cf..22353bc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,13 @@ services: labels: - "traefik.enable=true" - "traefik.http.routers.rfunds.rule=Host(`rfunds.online`) || Host(`www.rfunds.online`)" + - "traefik.http.routers.rfunds.priority=120" - "traefik.http.services.rfunds.loadbalancer.server.port=3000" + # Wildcard router: any space subdomain routes to this app + - "traefik.http.routers.rfunds-spaces.rule=HostRegexp(`{space:[a-z0-9-]+}.rfunds.online`)" + - "traefik.http.routers.rfunds-spaces.priority=100" + - "traefik.http.routers.rfunds-spaces.entrypoints=web" + - "traefik.http.routers.rfunds-spaces.service=rfunds" healthcheck: test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3000/"] interval: 30s