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