From 345fbca1a9ee392193e58cf81cd4a777c66711a3 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Tue, 31 Mar 2026 19:26:00 -0700 Subject: [PATCH] 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 --- docker-compose.yml | 2 +- middleware.ts | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 85e6578..4a6264c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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/"] diff --git a/middleware.ts b/middleware.ts index 6516cf7..775ca0e 100644 --- a/middleware.ts +++ b/middleware.ts @@ -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() }