From 434f874963af13027b2a8406b3ce8cff937e5e86 Mon Sep 17 00:00:00 2001 From: poduck Date: Wed, 3 Dec 2025 16:40:18 -0500 Subject: [PATCH] fix(traefik): Route tenant subdomains to nginx instead of django MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The subdomain-router was incorrectly sending tenant subdomain requests directly to Django (API server), causing 404 errors. Now routes to nginx which serves the React SPA and proxies /api/ requests to Django. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- smoothschedule/compose/production/traefik/traefik.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/smoothschedule/compose/production/traefik/traefik.yml b/smoothschedule/compose/production/traefik/traefik.yml index 5b71e7a..db824b7 100644 --- a/smoothschedule/compose/production/traefik/traefik.yml +++ b/smoothschedule/compose/production/traefik/traefik.yml @@ -87,13 +87,14 @@ http: # Wildcard subdomain router for tenant subdomains # Each subdomain gets its own certificate via HTTP challenge + # Routes to nginx which serves the frontend SPA and proxies /api/ to Django subdomain-router: rule: 'HostRegexp(`{subdomain:[a-z0-9-]+}.smoothschedule.com`)' entryPoints: - web-secure middlewares: - csrf - service: django + service: nginx tls: certResolver: letsencrypt