Skip to content

Commit

Permalink
doc: fix middleware labels.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez authored and traefiker committed May 27, 2019
1 parent ffe69c6 commit 796873c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/content/middlewares/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ If you use multiple `providers` and wish to reference a middleware declared in a

labels:
# Attach file.add-foo-prefix middleware (declared in file)
- "traefik.http.routers.middlewares=file.add-foo-prefix"
- "traefik.http.routers.my-container.middlewares=file.add-foo-prefix"
```

## Available Middlewares
Expand Down
2 changes: 1 addition & 1 deletion docs/content/providers/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ You can declare pieces of middleware using labels starting with `traefik.http.mi
# ...
labels:
- traefik.http.middlewares.my-redirect.schemeredirect.scheme=https
- traefik.http.routers.middlewares=my-redirect
- traefik.http.routers.my-container.middlewares=my-redirect
```

!!! warning "Conflicts in Declaration"
Expand Down
2 changes: 1 addition & 1 deletion docs/content/providers/marathon.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ For example, to declare a middleware [`schemeredirect`](../middlewares/redirects
...
"labels": {
"traefik.http.middlewares.my-redirect.schemeredirect.scheme": "https",
"traefik.http.routers.middlewares": "my-redirect"
"traefik.http.routers.my-container.middlewares": "my-redirect"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion docs/content/providers/rancher.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ For example, to declare a middleware [`schemeredirect`](../middlewares/redirects
# ...
labels:
- traefik.http.middlewares.my-redirect.schemeredirect.scheme=https
- traefik.http.routers.middlewares=my-redirect
- traefik.http.routers.my-container.middlewares=my-redirect
```

!!! warning "Conflicts in Declaration"
Expand Down

0 comments on commit 796873c

Please sign in to comment.