traefik/rules.yaml
2024-05-20 16:42:35 +02:00

22 lines
451 B
YAML

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