From 5551626a7cb8af2cacc64e1d2708a54632a14e3d Mon Sep 17 00:00:00 2001 From: mathieu Date: Thu, 23 May 2024 22:18:11 +0200 Subject: [PATCH] rules --- traefik/rules.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/traefik/rules.yaml b/traefik/rules.yaml index a5aae1a..514c8c2 100644 --- a/traefik/rules.yaml +++ b/traefik/rules.yaml @@ -14,7 +14,7 @@ http: certresolver: myresolver middlewares: - replacepathregex-vaultwarden - - redirectregex-vaultwarden + router-gitea: rule: "Host(`huguettes.freeboxos.fr`) && Path(`/gitea`)" service: "service-gitea" @@ -22,7 +22,7 @@ http: certresolver: myresolver middlewares: - replacepathregex-gitea - - redirectregex-gitea + services: service-dsm: @@ -49,16 +49,16 @@ http: replacement: "/$1" replacepathregex-vaultwarden: replacepathregex: - regex: "^/vaultwarden/(.*)" - replacement: "/$1" + regex: "^(.*)/(.*)" + replacement: "/$2" redirectregex-vaultwarden: redirectRegex: regex: "^https://huguettes.freeboxos.fr/(.*)" replacement: "https://huguettes.freeboxos.fr/vaultwarden/${1}" replacepathregex-gitea: replacepathregex: - regex: "^/gitea/(.*)" - replacement: "/$1" + regex: "^(.*)/(.*)" + replacement: "/$2" redirectregex-gitea: redirectRegex: regex: "^https://huguettes.freeboxos.fr/(.*)"