20 lines
469 B
YAML
20 lines
469 B
YAML
http:
|
|
routers:
|
|
router-dsm:
|
|
rule: "Host(`huguettes.freeboxos.fr`) && PathRegexp(`(/nas|/photo|/file|/drive|/note)`)"
|
|
service: "service-dsm"
|
|
middlewares:
|
|
- nas-replacepathregex
|
|
services:
|
|
service-dsm:
|
|
loadBalancer:
|
|
passHostHeader: true
|
|
servers:
|
|
- url: "http://192.168.1.100:5000"
|
|
|
|
|
|
middlewares:
|
|
nas-replacepathregex:
|
|
replacepathregex:
|
|
regex: "^/nas/(.*)"
|
|
replacement: "/$1" |