From 4207f8a32ecd7506b61780fb8d95066bbbfe1368 Mon Sep 17 00:00:00 2001 From: mathieu Date: Mon, 20 May 2024 16:53:52 +0200 Subject: [PATCH] middlewares --- rules.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rules.yaml b/rules.yaml index 53301dd..3bf56d1 100644 --- a/rules.yaml +++ b/rules.yaml @@ -5,7 +5,9 @@ http: service: "service-dsm" tls: certresolver: myresolver - middlewares: nas-redir + middlewares: + - nas-replacepathregex + - nas-redirectregex services: service-dsm: loadBalancer: @@ -15,10 +17,11 @@ http: middlewares: - nas-redir: + nas-replacepathregex: replacepathregex: regex: ^/nas/(.*) replacement: /$$1 + nas-redirectregex: redirectregex: regex: ^(.*)/nas$$ replacement: $$1/nas/ \ No newline at end of file