fix(traefik): Add TLS store for wildcard subdomain routing
- Add default TLS store with wildcard certificate for unknown SNIs - Add priority=1 to subdomain-router for catch-all behavior - Use proper Traefik v3 HostRegexp syntax with anchors 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -43,6 +43,16 @@ certificatesResolvers:
|
||||
- "1.1.1.1:53"
|
||||
- "8.8.8.8:53"
|
||||
|
||||
tls:
|
||||
stores:
|
||||
default:
|
||||
defaultGeneratedCert:
|
||||
resolver: letsencrypt-dns
|
||||
domain:
|
||||
main: "smoothschedule.com"
|
||||
sans:
|
||||
- "*.smoothschedule.com"
|
||||
|
||||
http:
|
||||
routers:
|
||||
# Main domain and www
|
||||
@@ -103,8 +113,10 @@ http:
|
||||
# Wildcard subdomain router for tenant subdomains
|
||||
# Uses DNS challenge for wildcard certificate (*.smoothschedule.com)
|
||||
# Routes to nginx which serves the frontend SPA and proxies /api/ to Django
|
||||
# Low priority (1) ensures specific domain routers match first
|
||||
subdomain-router:
|
||||
rule: 'HostRegexp(`[a-z0-9-]+\\.smoothschedule\\.com`)'
|
||||
rule: 'HostRegexp(`^[a-z0-9-]+\\.smoothschedule\\.com$`)'
|
||||
priority: 1
|
||||
entryPoints:
|
||||
- web-secure
|
||||
middlewares:
|
||||
|
||||
Reference in New Issue
Block a user