Skip to content

Commit

Permalink
doc: fix middleware names for CRD.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez authored and traefiker committed Jun 18, 2019
1 parent 6069df6 commit be888b5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions docs/content/middlewares/compress.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ labels:
- "traefik.http.middlewares.test-compress.compress=true"
```

```yaml tab="Kubernetes"
# Enable gzip compression
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: test-compress
spec:
compress: {}
```

```json tab="Marathon"
"labels": {
"traefik.http.middlewares.test-compress.compress": "true"
Expand Down
2 changes: 1 addition & 1 deletion docs/content/middlewares/stripprefix.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ kind: Middleware
metadata:
name: test-stripprefix
spec:
StripPrefix:
stripPrefix:
prefixes:
- /foobar
- /fiibar
Expand Down
2 changes: 1 addition & 1 deletion docs/content/middlewares/stripprefixregex.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ kind: Middleware
metadata:
name: test-stripprefixregex
spec:
StripPrefixRegex:
stripPrefixRegex:
regex: "^/foo/(.*)"
```

Expand Down
4 changes: 2 additions & 2 deletions pkg/config/middlewares.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ type Middleware struct {
Headers *Headers `json:"headers,omitempty"`
Errors *ErrorPage `json:"errors,omitempty"`
RateLimit *RateLimit `json:"rateLimit,omitempty"`
RedirectRegex *RedirectRegex `json:"redirectregex,omitempty"`
RedirectScheme *RedirectScheme `json:"redirectscheme,omitempty"`
RedirectRegex *RedirectRegex `json:"redirectRegex,omitempty"`
RedirectScheme *RedirectScheme `json:"redirectScheme,omitempty"`
BasicAuth *BasicAuth `json:"basicAuth,omitempty"`
DigestAuth *DigestAuth `json:"digestAuth,omitempty"`
ForwardAuth *ForwardAuth `json:"forwardAuth,omitempty"`
Expand Down

0 comments on commit be888b5

Please sign in to comment.