change doc references to scheme[Rr]edirect -> redirect[Ss]cheme
This commit is contained in:
parent
8d7eccad5d
commit
d306c8fd50
4 changed files with 10 additions and 10 deletions
|
@ -19,7 +19,7 @@ labels:
|
||||||
- "traefik.http.routers.router1.rule=Host(`mydomain`)"
|
- "traefik.http.routers.router1.rule=Host(`mydomain`)"
|
||||||
- "traefik.http.middlewares.secured.chain.middlewares=https-only,known-ips,auth-users"
|
- "traefik.http.middlewares.secured.chain.middlewares=https-only,known-ips,auth-users"
|
||||||
- "traefik.http.middlewares.auth-users.basicauth.users=test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/"
|
- "traefik.http.middlewares.auth-users.basicauth.users=test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/"
|
||||||
- "traefik.http.middlewares.https-only.schemeredirect.scheme=https"
|
- "traefik.http.middlewares.https-only.redirectscheme.scheme=https"
|
||||||
- "traefik.http.middlewares.known-ips.ipwhitelist.sourceRange=192.168.1.7,127.0.0.1/32"
|
- "traefik.http.middlewares.known-ips.ipwhitelist.sourceRange=192.168.1.7,127.0.0.1/32"
|
||||||
- "http.services.service1.loadbalancer.server.port=80"
|
- "http.services.service1.loadbalancer.server.port=80"
|
||||||
```
|
```
|
||||||
|
@ -69,7 +69,7 @@ kind: Middleware
|
||||||
metadata:
|
metadata:
|
||||||
name: https-only
|
name: https-only
|
||||||
spec:
|
spec:
|
||||||
schemeRedirect:
|
redirectScheme:
|
||||||
scheme: https
|
scheme: https
|
||||||
---
|
---
|
||||||
apiVersion: traefik.containo.us/v1alpha1
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
@ -90,7 +90,7 @@ spec:
|
||||||
"traefik.http.routers.router1.rule": "Host(`mydomain`)",
|
"traefik.http.routers.router1.rule": "Host(`mydomain`)",
|
||||||
"traefik.http.middlewares.secured.chain.middlewares": "https-only,known-ips,auth-users",
|
"traefik.http.middlewares.secured.chain.middlewares": "https-only,known-ips,auth-users",
|
||||||
"traefik.http.middlewares.auth-users.basicauth.users": "test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/",
|
"traefik.http.middlewares.auth-users.basicauth.users": "test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/",
|
||||||
"traefik.http.middlewares.https-only.schemeredirect.scheme": "https",
|
"traefik.http.middlewares.https-only.redirectscheme.scheme": "https",
|
||||||
"traefik.http.middlewares.known-ips.ipwhitelist.sourceRange": "192.168.1.7,127.0.0.1/32",
|
"traefik.http.middlewares.known-ips.ipwhitelist.sourceRange": "192.168.1.7,127.0.0.1/32",
|
||||||
"http.services.service1.loadbalancer.server.port": "80"
|
"http.services.service1.loadbalancer.server.port": "80"
|
||||||
}
|
}
|
||||||
|
@ -103,7 +103,7 @@ labels:
|
||||||
- "traefik.http.routers.router1.rule=Host(`mydomain`)"
|
- "traefik.http.routers.router1.rule=Host(`mydomain`)"
|
||||||
- "traefik.http.middlewares.secured.chain.middlewares=https-only,known-ips,auth-users"
|
- "traefik.http.middlewares.secured.chain.middlewares=https-only,known-ips,auth-users"
|
||||||
- "traefik.http.middlewares.auth-users.basicauth.users=test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/"
|
- "traefik.http.middlewares.auth-users.basicauth.users=test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/"
|
||||||
- "traefik.http.middlewares.https-only.schemeredirect.scheme=https"
|
- "traefik.http.middlewares.https-only.redirectscheme.scheme=https"
|
||||||
- "traefik.http.middlewares.known-ips.ipwhitelist.sourceRange=192.168.1.7,127.0.0.1/32"
|
- "traefik.http.middlewares.known-ips.ipwhitelist.sourceRange=192.168.1.7,127.0.0.1/32"
|
||||||
- "http.services.service1.loadbalancer.server.port=80"
|
- "http.services.service1.loadbalancer.server.port=80"
|
||||||
```
|
```
|
||||||
|
@ -123,7 +123,7 @@ labels:
|
||||||
[http.middlewares.auth-users.BasicAuth]
|
[http.middlewares.auth-users.BasicAuth]
|
||||||
users = ["test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/"]
|
users = ["test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/"]
|
||||||
|
|
||||||
[http.middlewares.https-only.SchemeRedirect]
|
[http.middlewares.https-only.redirectScheme]
|
||||||
scheme = "https"
|
scheme = "https"
|
||||||
|
|
||||||
[http.middlewares.known-ips.ipWhiteList]
|
[http.middlewares.known-ips.ipWhiteList]
|
||||||
|
|
|
@ -247,7 +247,7 @@ You can declare pieces of middleware using labels starting with `traefik.http.mi
|
||||||
my-container:
|
my-container:
|
||||||
# ...
|
# ...
|
||||||
labels:
|
labels:
|
||||||
- traefik.http.middlewares.my-redirect.schemeredirect.scheme=https
|
- traefik.http.middlewares.my-redirect.redirectscheme.scheme=https
|
||||||
- traefik.http.routers.my-container.middlewares=my-redirect
|
- traefik.http.routers.my-container.middlewares=my-redirect
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -269,7 +269,7 @@ Every [Service](../routing/services/index.md) parameter can be updated this way.
|
||||||
### Middleware
|
### Middleware
|
||||||
|
|
||||||
You can declare pieces of middleware using labels starting with `traefik.HTTP.Middlewares.{middleware-name-of-your-choice}.`, followed by the middleware type/options.
|
You can declare pieces of middleware using labels starting with `traefik.HTTP.Middlewares.{middleware-name-of-your-choice}.`, followed by the middleware type/options.
|
||||||
For example, to declare a middleware [`schemeredirect`](../middlewares/redirectscheme.md) named `my-redirect`, you'd write `traefik.HTTP.Middlewares.my-redirect.RedirectScheme.Scheme: https`.
|
For example, to declare a middleware [`redirectscheme`](../middlewares/redirectscheme.md) named `my-redirect`, you'd write `traefik.HTTP.Middlewares.my-redirect.RedirectScheme.Scheme: https`.
|
||||||
|
|
||||||
??? example "Declaring and Referencing a Middleware"
|
??? example "Declaring and Referencing a Middleware"
|
||||||
|
|
||||||
|
@ -277,7 +277,7 @@ For example, to declare a middleware [`schemeredirect`](../middlewares/redirects
|
||||||
{
|
{
|
||||||
...
|
...
|
||||||
"labels": {
|
"labels": {
|
||||||
"traefik.http.middlewares.my-redirect.schemeredirect.scheme": "https",
|
"traefik.http.middlewares.my-redirect.redirectscheme.scheme": "https",
|
||||||
"traefik.http.routers.my-container.middlewares": "my-redirect"
|
"traefik.http.routers.my-container.middlewares": "my-redirect"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -160,14 +160,14 @@ Every [Service](../routing/services/index.md) parameter can be updated this way.
|
||||||
### Middleware
|
### Middleware
|
||||||
|
|
||||||
You can declare pieces of middleware using labels starting with `traefik.http.middlewares.{name-of-your-choice}.`, followed by the middleware type/options.
|
You can declare pieces of middleware using labels starting with `traefik.http.middlewares.{name-of-your-choice}.`, followed by the middleware type/options.
|
||||||
For example, to declare a middleware [`schemeredirect`](../middlewares/redirectscheme.md) named `my-redirect`, you'd write `traefik.http.middlewares.my-redirect.schemeredirect.scheme: https`.
|
For example, to declare a middleware [`redirectscheme`](../middlewares/redirectscheme.md) named `my-redirect`, you'd write `traefik.http.middlewares.my-redirect.redirectscheme.scheme: https`.
|
||||||
|
|
||||||
??? example "Declaring and Referencing a Middleware"
|
??? example "Declaring and Referencing a Middleware"
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# ...
|
# ...
|
||||||
labels:
|
labels:
|
||||||
- traefik.http.middlewares.my-redirect.schemeredirect.scheme=https
|
- traefik.http.middlewares.my-redirect.redirectscheme.scheme=https
|
||||||
- traefik.http.routers.my-container.middlewares=my-redirect
|
- traefik.http.routers.my-container.middlewares=my-redirect
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue