middlewares
This commit is contained in:
parent
9ab1e90628
commit
4207f8a32e
@ -5,7 +5,9 @@ http:
|
|||||||
service: "service-dsm"
|
service: "service-dsm"
|
||||||
tls:
|
tls:
|
||||||
certresolver: myresolver
|
certresolver: myresolver
|
||||||
middlewares: nas-redir
|
middlewares:
|
||||||
|
- nas-replacepathregex
|
||||||
|
- nas-redirectregex
|
||||||
services:
|
services:
|
||||||
service-dsm:
|
service-dsm:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
@ -15,10 +17,11 @@ http:
|
|||||||
|
|
||||||
|
|
||||||
middlewares:
|
middlewares:
|
||||||
nas-redir:
|
nas-replacepathregex:
|
||||||
replacepathregex:
|
replacepathregex:
|
||||||
regex: ^/nas/(.*)
|
regex: ^/nas/(.*)
|
||||||
replacement: /$$1
|
replacement: /$$1
|
||||||
|
nas-redirectregex:
|
||||||
redirectregex:
|
redirectregex:
|
||||||
regex: ^(.*)/nas$$
|
regex: ^(.*)/nas$$
|
||||||
replacement: $$1/nas/
|
replacement: $$1/nas/
|
Loading…
Reference in New Issue
Block a user