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: