mirror of
https://github.com/samply/bridgehead.git
synced 2026-03-25 10:50:15 +01:00
refactor: simplify OVIS frontend Traefik routing to single CCP router
Collapse the `/ccp-ovis` slash-redirect and prefix-strip flow into one `ovis-frontend-ccp` router by attaching both middlewares in order (redirect, then strip). This removes redundant router labels while preserving canonical `/ccp-ovis -> /ccp-ovis/` behavior and mounted-path forwarding to the frontend service.
This commit is contained in:
@@ -68,16 +68,11 @@ services:
|
||||
condition: service_healthy
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.ovis-frontend-ccp-slash.tls=true"
|
||||
- "traefik.http.routers.ovis-frontend-ccp-slash.rule=Path(`/ccp-ovis`)"
|
||||
- "traefik.http.routers.ovis-frontend-ccp-slash.priority=1000"
|
||||
- "traefik.http.routers.ovis-frontend-ccp-slash.middlewares=ovis-frontend-ccp-slash-redirect"
|
||||
- "traefik.http.routers.ovis-frontend-ccp-slash.service=ovis-frontend"
|
||||
- "traefik.http.middlewares.ovis-frontend-ccp-slash-redirect.redirectregex.regex=^https?://([^/]+)/ccp-ovis$"
|
||||
- "traefik.http.middlewares.ovis-frontend-ccp-slash-redirect.redirectregex.replacement=https://$${1}/ccp-ovis/"
|
||||
- "traefik.http.middlewares.ovis-frontend-ccp-slash-redirect.redirectregex.permanent=true"
|
||||
- "traefik.http.routers.ovis-frontend-ccp.tls=true"
|
||||
- "traefik.http.routers.ovis-frontend-ccp.rule=PathPrefix(`/ccp-ovis`)"
|
||||
- "traefik.http.middlewares.ovis-frontend-ccp-strip.stripprefix.prefixes=/ccp-ovis"
|
||||
- "traefik.http.routers.ovis-frontend-ccp.middlewares=ovis-frontend-ccp-strip"
|
||||
- "traefik.http.routers.ovis-frontend-ccp.middlewares=ovis-frontend-ccp-slash-redirect,ovis-frontend-ccp-strip"
|
||||
- "traefik.http.services.ovis-frontend.loadbalancer.server.port=5173"
|
||||
|
||||
Reference in New Issue
Block a user