From d4a2f72f91e1adfa136d4b845fd7184227a90ec1 Mon Sep 17 00:00:00 2001 From: tm16-medma Date: Thu, 26 Mar 2026 09:28:39 +0100 Subject: [PATCH] Update Traefik middleware configuration for OVIS frontend in ovis-compose.yml Replaced the existing middleware for path prefix stripping with a new middleware, ensuring proper handling of the `/ccp-ovis` path. This change enhances the routing setup by integrating both the slash-redirect and prefix-strip middlewares for improved service accessibility. --- ccp/modules/ovis-compose.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ccp/modules/ovis-compose.yml b/ccp/modules/ovis-compose.yml index 5c5cab6d..545f2ae0 100644 --- a/ccp/modules/ovis-compose.yml +++ b/ccp/modules/ovis-compose.yml @@ -111,5 +111,6 @@ services: - "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.routers.ovis-frontend-ccp.middlewares=ovis-frontend-ccp-slash-redirect,traefik-forward-auth-ovis" + - "traefik.http.middlewares.ovis-frontend-ccp-strip.stripprefix.prefixes=/ccp-ovis" + - "traefik.http.routers.ovis-frontend-ccp.middlewares=ovis-frontend-ccp-slash-redirect,ovis-frontend-ccp-strip,traefik-forward-auth-ovis" - "traefik.http.services.ovis-frontend.loadbalancer.server.port=5173"