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