From 6d94ebd4eb671c5ce8d04663dbcd1237b59150f3 Mon Sep 17 00:00:00 2001 From: Tobias Kussel Date: Fri, 30 Jun 2023 06:02:32 +0000 Subject: [PATCH] Add path stripper --- bbmri/modules/dnpm-compose.yml | 2 ++ ccp/modules/dnpm-compose.yml | 2 ++ minimal/modules/dnpm-compose.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/bbmri/modules/dnpm-compose.yml b/bbmri/modules/dnpm-compose.yml index 0cbc45f..9201fe4 100644 --- a/bbmri/modules/dnpm-compose.yml +++ b/bbmri/modules/dnpm-compose.yml @@ -40,6 +40,8 @@ services: labels: - "traefik.enable=true" - "traefik.http.routers.dnpm-connect.rule=PathPrefix(`/dnpm-connect`)" + - "traefik.http.middlewares.dnpm-connect-strip.stripprefix.prefixes=/dnpm-connect" + - "traefik.http.routers.dnpm-connect.middlewares=dnpm-connect-strip" - "traefik.http.services.dnpm-connect.loadbalancer.server.port=8062" - "traefik.http.routers.dnpm-connect.tls=true" diff --git a/ccp/modules/dnpm-compose.yml b/ccp/modules/dnpm-compose.yml index 9286d32..336ae1c 100644 --- a/ccp/modules/dnpm-compose.yml +++ b/ccp/modules/dnpm-compose.yml @@ -24,5 +24,7 @@ services: labels: - "traefik.enable=true" - "traefik.http.routers.dnpm-connect.rule=PathPrefix(`/dnpm-connect`)" + - "traefik.http.middlewares.dnpm-connect-strip.stripprefix.prefixes=/dnpm-connect" + - "traefik.http.routers.dnpm-connect.middlewares=dnpm-connect-strip" - "traefik.http.services.dnpm-connect.loadbalancer.server.port=8062" - "traefik.http.routers.dnpm-connect.tls=true" diff --git a/minimal/modules/dnpm-compose.yml b/minimal/modules/dnpm-compose.yml index 276f5ff..155ee9c 100644 --- a/minimal/modules/dnpm-compose.yml +++ b/minimal/modules/dnpm-compose.yml @@ -40,6 +40,8 @@ services: labels: - "traefik.enable=true" - "traefik.http.routers.dnpm-connect.rule=PathPrefix(`/dnpm-connect`)" + - "traefik.http.middlewares.dnpm-connect-strip.stripprefix.prefixes=/dnpm-connect" + - "traefik.http.routers.dnpm-connect.middlewares=dnpm-connect-strip" - "traefik.http.services.dnpm-connect.loadbalancer.server.port=8062" - "traefik.http.routers.dnpm-connect.tls=true"