From 95b8d39f11f013405e680995b719b82d02b2438a Mon Sep 17 00:00:00 2001 From: mathieu Date: Mon, 20 May 2024 16:40:37 +0200 Subject: [PATCH] chore: middlewares --- rules.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/rules.yaml b/rules.yaml index 6d0a2e1..309cb57 100644 --- a/rules.yaml +++ b/rules.yaml @@ -5,10 +5,18 @@ http: service: "service-dsm" tls: certresolver: myresolver - + middlewares: nas-redir services: service-dsm: loadBalancer: passHostHeader: true servers: - url: "http://192.168.1.100:5000" + + + middlewares: + portainer-replacepathregex: + replacepathregex: + regex: ^/nas/(.*) + replacement: /$$1" + \ No newline at end of file