middlewares

This commit is contained in:
mathieu 2024-05-20 16:53:52 +02:00
parent 9ab1e90628
commit 4207f8a32e

View File

@ -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/