2024-05-18 21:35:51 +00:00
|
|
|
http:
|
|
|
|
routers:
|
|
|
|
router-dsm:
|
2024-05-20 15:04:37 +00:00
|
|
|
rule: "Host(`huguettes.freeboxos.fr`) && PathRegexp(`(/nas|/photo|/file|/drive|/note)`)"
|
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
|
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:
|
2024-05-20 14:59:10 +00:00
|
|
|
regex: "^/nas/(.*)"
|
|
|
|
replacement: "/$1"
|