Update OVIS frontend configuration in ovis-compose.yml

Replaced the APP_DOMAIN variable with ORIGIN for improved clarity in the OVIS frontend service configuration. Additionally, removed the stripprefix middleware from the Traefik router setup to streamline routing and enhance service management.
This commit is contained in:
tm16-medma
2026-03-30 16:05:44 +02:00
parent 04757fbc76
commit c504cddff0

View File

@@ -80,6 +80,8 @@ services:
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 5 retries: 5
# Internal only - no direct Traefik exposure. GraphQL is accessed via frontend internal proxy.
ovis-frontend: ovis-frontend:
image: docker.verbis.dkfz.de/ovis/ovis-frontend:latest image: docker.verbis.dkfz.de/ovis/ovis-frontend:latest
container_name: bridgehead-ccp-ovis-frontend container_name: bridgehead-ccp-ovis-frontend
@@ -87,7 +89,7 @@ services:
OVIS_PUBLIC_BASE_PATH: /ccp-ovis OVIS_PUBLIC_BASE_PATH: /ccp-ovis
PUBLIC_LOGIN_ENABLED: "false" PUBLIC_LOGIN_ENABLED: "false"
PUBLIC_OVIS_IMPORT: ccp PUBLIC_OVIS_IMPORT: ccp
APP_DOMAIN: ${HOST} ORIGIN: https://${HOST}
depends_on: depends_on:
ovis-backend-apollo: ovis-backend-apollo:
condition: service_healthy condition: service_healthy
@@ -98,6 +100,5 @@ services:
- "traefik.http.middlewares.ovis-frontend-ccp-slash-redirect.redirectregex.permanent=true" - "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.tls=true"
- "traefik.http.routers.ovis-frontend-ccp.rule=PathPrefix(`/ccp-ovis`)" - "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=traefik-forward-auth-ovis,ovis-frontend-ccp-slash-redirect"
- "traefik.http.routers.ovis-frontend-ccp.middlewares=traefik-forward-auth-ovis,ovis-frontend-ccp-slash-redirect,ovis-frontend-ccp-strip"
- "traefik.http.services.ovis-frontend-ccp.loadbalancer.server.port=5173" - "traefik.http.services.ovis-frontend-ccp.loadbalancer.server.port=5173"