fix: remove music.jefflix.lol from jefflix-website Traefik rule

music.jefflix.lol should route to the soulsync-player container,
not jefflix-website. Both containers were claiming the domain,
causing jefflix-website to win the Traefik routing conflict.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-03-31 19:26:00 -07:00
parent f5dcc3c804
commit 345fbca1a9
2 changed files with 1 additions and 7 deletions

View File

@ -27,7 +27,7 @@ services:
- THREADFIN_URL=https://threadfin.jefflix.lol
labels:
- "traefik.enable=true"
- "traefik.http.routers.jefflix-website.rule=Host(`jefflix.lol`) || Host(`www.jefflix.lol`) || Host(`music.jefflix.lol`)"
- "traefik.http.routers.jefflix-website.rule=Host(`jefflix.lol`) || Host(`www.jefflix.lol`)"
- "traefik.http.services.jefflix-website.loadbalancer.server.port=3000"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3000/"]

View File

@ -8,12 +8,6 @@ export function middleware(request: NextRequest) {
return NextResponse.redirect(new URL("/gate", request.url))
}
// Rewrite music.jefflix.lol root to /music (URL stays clean)
const host = request.headers.get("host") || ""
if (host.startsWith("music.") && request.nextUrl.pathname === "/") {
return NextResponse.rewrite(new URL("/music", request.url))
}
return NextResponse.next()
}