From 1541c45c31a1a6c9ee53a4ce3c9c2cd1ba66312a Mon Sep 17 00:00:00 2001 From: mathieu Date: Sat, 25 May 2024 23:56:44 +0200 Subject: [PATCH] rules --- traefik/rules.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/traefik/rules.yaml b/traefik/rules.yaml index 0621a30..84cdd47 100644 --- a/traefik/rules.yaml +++ b/traefik/rules.yaml @@ -28,6 +28,8 @@ http: rule: "Host(`huguettes.freeboxos.fr`) && Path(`/home`)" service: "service-homepage" tls: {} + middlewares: + - replacepathregex-homepage services: service-dsm: @@ -70,7 +72,10 @@ http: redirectRegex: regex: "^https://(.*)/(.*)" replacement: "https://huguettes.freeboxos.fr/gitea/$2" - + replacepathregex-homepage: + replacepathregex: + regex: "^/home/(.*)" + replacement: "/$1" tls: stores: default: