Docker-compose label escaping mangles regex patterns. Use a separate Traefik dynamic config file instead — clean regex, proper 302 redirect. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
18 lines
365 B
YAML
18 lines
365 B
YAML
http:
|
|
routers:
|
|
root-redirect:
|
|
rule: "Path(`/`)"
|
|
priority: 100
|
|
entryPoints:
|
|
- websecure
|
|
tls: {}
|
|
middlewares:
|
|
- root-to-platform
|
|
service: saas@docker
|
|
middlewares:
|
|
root-to-platform:
|
|
redirectRegex:
|
|
regex: "^(https?://[^/]+)/?$"
|
|
replacement: "${1}/platform/"
|
|
permanent: false
|