fix: capture group in redirectregex for root redirect

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-05 23:17:14 +02:00
parent 4f4d9777ce
commit 8a59c23266

View File

@@ -153,7 +153,9 @@ services:
- traefik.http.routers.root-redirect.tls=true - traefik.http.routers.root-redirect.tls=true
- traefik.http.routers.root-redirect.middlewares=root-to-platform - traefik.http.routers.root-redirect.middlewares=root-to-platform
- traefik.http.routers.root-redirect.service=saas - traefik.http.routers.root-redirect.service=saas
- traefik.http.middlewares.root-to-platform.replacepath.path=/platform/ - traefik.http.middlewares.root-to-platform.redirectregex.regex=^(https?://[^/]+)/?$$
- traefik.http.middlewares.root-to-platform.redirectregex.replacement=$${1}/platform/
- traefik.http.middlewares.root-to-platform.redirectregex.permanent=false
networks: networks:
- cameleer - cameleer