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/(.*)"