fix: stripPrefixRegex documentation.
This commit is contained in:
parent
0d9cf697fa
commit
17554202f6
5 changed files with 138 additions and 98 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue