16 lines
363 B
YAML
16 lines
363 B
YAML
|
http:
|
||
|
middlewares:
|
||
|
force-trailing-slash:
|
||
|
chain:
|
||
|
middlewares:
|
||
|
- add-trailing-slash
|
||
|
- strip-after-slash
|
||
|
add-trailing-slash:
|
||
|
redirectregex:
|
||
|
regex: "^(https?://[^/]+/[a-z0-9_]+)$"
|
||
|
replacement: "${1}/"
|
||
|
permanent: true
|
||
|
strip-after-slash:
|
||
|
stripprefixregex:
|
||
|
regex: "/[a-z0-9_]+"
|