27 lines
609 B
YAML
27 lines
609 B
YAML
http:
|
|
routers:
|
|
router-dsm:
|
|
rule: "Host(`huguettes.freeboxos.fr`) && Path(`/nas`)"
|
|
service: "service-dsm"
|
|
tls:
|
|
certresolver: myresolver
|
|
middlewares:
|
|
- nas-replacepathregex
|
|
- nas-redirectregex
|
|
services:
|
|
service-dsm:
|
|
loadBalancer:
|
|
passHostHeader: true
|
|
servers:
|
|
- url: "http://192.168.1.100:5000"
|
|
|
|
|
|
middlewares:
|
|
nas-replacepathregex:
|
|
replacepathregex:
|
|
regex: ^/nas/(.*)
|
|
replacement: /$$1
|
|
nas-redirectregex:
|
|
redirectregex:
|
|
regex: ^(.*)/nas$$
|
|
replacement: $$1/nas/ |