traefik/rules.yaml

27 lines
609 B
YAML
Raw Normal View History

2024-05-18 21:35:51 +00:00
http:
routers:
router-dsm:
2024-05-20 11:48:16 +00:00
rule: "Host(`huguettes.freeboxos.fr`) && Path(`/nas`)"
2024-05-18 21:54:39 +00:00
service: "service-dsm"
2024-05-20 11:56:14 +00:00
tls:
2024-05-20 11:57:39 +00:00
certresolver: myresolver
2024-05-20 14:53:52 +00:00
middlewares:
- nas-replacepathregex
- nas-redirectregex
2024-05-18 21:35:51 +00:00
services:
service-dsm:
loadBalancer:
2024-05-19 08:39:27 +00:00
passHostHeader: true
2024-05-18 21:35:51 +00:00
servers:
2024-05-19 08:50:22 +00:00
- url: "http://192.168.1.100:5000"
2024-05-20 14:40:37 +00:00
middlewares:
2024-05-20 14:53:52 +00:00
nas-replacepathregex:
2024-05-20 14:40:37 +00:00
replacepathregex:
regex: ^/nas/(.*)
2024-05-20 14:51:25 +00:00
replacement: /$$1
2024-05-20 14:53:52 +00:00
nas-redirectregex:
2024-05-20 14:52:15 +00:00
redirectregex:
regex: ^(.*)/nas$$
replacement: $$1/nas/