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 <noreply@anthropic.com>
This commit is contained in:
parent
d97adce1cd
commit
ce1804298a
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue