From da995320976235f4aa35be6d9eca64d0fc7c0ad6 Mon Sep 17 00:00:00 2001 From: mathieu Date: Sun, 26 May 2024 20:05:57 +0200 Subject: [PATCH] stripprefixregex --- traefik/rules.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/traefik/rules.yaml b/traefik/rules.yaml index 84cdd47..7cdd0cc 100644 --- a/traefik/rules.yaml +++ b/traefik/rules.yaml @@ -16,20 +16,19 @@ http: service: "service-gitea" tls: {} middlewares: - - replacepathregex - - redirectregex-gitea + - stripprefixregex router-firefly: rule: "Host(`huguettes.freeboxos.fr`) && Path(`/firefly`)" service: "service-firefly" tls: {} middlewares: - - replacepathregex + - stripprefixregex router-homepage: rule: "Host(`huguettes.freeboxos.fr`) && Path(`/home`)" service: "service-homepage" tls: {} middlewares: - - replacepathregex-homepage + - stripprefixregex services: service-dsm: @@ -68,6 +67,10 @@ http: replacepathregex: regex: "^(.*)/(.*)" replacement: "/$2" + stripprefixregex: + stripPrefixRegex: + regex: + - "/[a-z0-9]+/" redirectregex-gitea: redirectRegex: regex: "^https://(.*)/(.*)"