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:
parent
f5dcc3c804
commit
345fbca1a9
|
|
@ -27,7 +27,7 @@ services:
|
||||||
- THREADFIN_URL=https://threadfin.jefflix.lol
|
- THREADFIN_URL=https://threadfin.jefflix.lol
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "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"
|
- "traefik.http.services.jefflix-website.loadbalancer.server.port=3000"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3000/"]
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3000/"]
|
||||||
|
|
|
||||||
|
|
@ -8,12 +8,6 @@ export function middleware(request: NextRequest) {
|
||||||
return NextResponse.redirect(new URL("/gate", request.url))
|
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()
|
return NextResponse.next()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue