stripprefixregex

This commit is contained in:
mathieu 2024-05-26 20:05:57 +02:00
parent 1541c45c31
commit da99532097

View File

@ -16,20 +16,19 @@ http:
service: "service-gitea"
tls: {}
middlewares:
- replacepathregex
- redirectregex-gitea
- stripprefixregex
router-firefly:
rule: "Host(`huguettes.freeboxos.fr`) && Path(`/firefly`)"
service: "service-firefly"
tls: {}
middlewares:
- replacepathregex
- stripprefixregex
router-homepage:
rule: "Host(`huguettes.freeboxos.fr`) && Path(`/home`)"
service: "service-homepage"
tls: {}
middlewares:
- replacepathregex-homepage
- stripprefixregex
services:
service-dsm:
@ -68,6 +67,10 @@ http:
replacepathregex:
regex: "^(.*)/(.*)"
replacement: "/$2"
stripprefixregex:
stripPrefixRegex:
regex:
- "/[a-z0-9]+/"
redirectregex-gitea:
redirectRegex:
regex: "^https://(.*)/(.*)"