1
0
Fork 0

fix: stripPrefixRegex documentation.

This commit is contained in:
Ludovic Fernandez 2019-09-02 10:52:04 +02:00 committed by Traefiker Bot
parent 0d9cf697fa
commit 17554202f6
5 changed files with 138 additions and 98 deletions

View file

@ -23,7 +23,8 @@ metadata:
name: test-stripprefixregex
spec:
stripPrefixRegex:
regex: "^/foo/(.*)"
regex:
- "^/foo/(.*)"
```
```json tab="Marathon"
@ -42,7 +43,7 @@ labels:
# Replace the path by /foo
[http.middlewares]
[http.middlewares.test-stripprefixregex.stripPrefixRegex]
regex = "^/foo/(.*)"
regex = ["^/foo/(.*)"]
```
```yaml tab="File (YAML)"
@ -51,7 +52,8 @@ http:
middlewares:
test-stripprefixregex:
stripPrefixRegex:
regex: "^/foo/(.*)"
regex:
- "^/foo/(.*)"
```
## Configuration Options