diff --git a/docs/content/middlewares/overview.md b/docs/content/middlewares/overview.md index d57cd546d..16557fde4 100644 --- a/docs/content/middlewares/overview.md +++ b/docs/content/middlewares/overview.md @@ -142,7 +142,7 @@ If you use multiple `providers` and wish to reference a middleware declared in a | [Headers](headers.md) | Add / Update headers | Security | | [IPWhiteList](ipwhitelist.md) | Limit the allowed client IPs | Security, Request lifecycle | | [MaxConnection](maxconnection.md) | Limit the number of simultaneous connections | Security, Request lifecycle | -| [PassTLSClientCert](passtlsclientcert.md) | TODO | Security | +| [PassTLSClientCert](passtlsclientcert.md) | Adding Client Certificates in a Header | Security | | [RateLimit](ratelimit.md) | Limit the call frequency | Security, Request lifecycle | | [RedirectScheme](redirectscheme.md) | Redirect easily the client elsewhere | Request lifecycle | | [RedirectRegex](redirectregex.md) | Redirect the client elsewhere | Request lifecycle | diff --git a/docs/content/providers/docker.md b/docs/content/providers/docker.md index 5cee5bffe..9763b2284 100644 --- a/docs/content/providers/docker.md +++ b/docs/content/providers/docker.md @@ -182,7 +182,7 @@ This option can be overridden on a container basis with the `traefik.docker.netw ### `defaultRule` -_Optional, Default=Host(`{{ normalize .Name }}`)_ +_Optional, Default=```Host(`{{ normalize .Name }}`)```_ For a given container if no routing rule was defined by a label, it is defined by this defaultRule instead. It must be a valid [Go template](https://golang.org/pkg/text/template/), @@ -190,8 +190,15 @@ augmented with the [sprig template functions](http://masterminds.github.io/sprig The container service name can be accessed as the `Name` identifier, and the template has access to all the labels defined on this container. -```toml -defaultRule = "Host(`{{ .Name }}.{{ index .Labels \"customLabel\"}}`)" +```toml tab="File" +[docker] +defaultRule = "" +# ... +``` + +```txt tab="CLI" +--providers.docker +--providers.docker.defaultRule="Host(`{{ .Name }}.{{ index .Labels \"customLabel\"}}`)" ``` ### `swarmMode` @@ -246,6 +253,8 @@ You can declare pieces of middleware using labels starting with `traefik.http.mi If you declare multiple middleware with the same name but with different parameters, the middleware fails to be declared. +More information about available middlewares in the dedicated [middlewares section](../middlewares/overview.md). + ### TCP You can declare TCP Routers and/or Services using labels. diff --git a/docs/content/providers/kubernetes-crd.md b/docs/content/providers/kubernetes-crd.md index b1e9400b1..1c38d3a1d 100644 --- a/docs/content/providers/kubernetes-crd.md +++ b/docs/content/providers/kubernetes-crd.md @@ -212,6 +212,8 @@ spec: - name: stripprefix ``` +More information about available middlewares in the dedicated [middlewares section](../middlewares/overview.md). + ### TLS To allow for TLS, we made use of the `Secret` kind, as it was already defined, and it can be directly used in an `IngressRoute`: diff --git a/docs/content/providers/marathon.md b/docs/content/providers/marathon.md index ba68f37fb..095282923 100644 --- a/docs/content/providers/marathon.md +++ b/docs/content/providers/marathon.md @@ -287,6 +287,8 @@ For example, to declare a middleware [`schemeredirect`](../middlewares/redirects If you declare multiple middleware with the same name but with different parameters, the middleware fails to be declared. +More information about available middlewares in the dedicated [middlewares section](../middlewares/overview.md). + ### TCP You can declare TCP Routers and/or Services using labels. diff --git a/docs/content/providers/rancher.md b/docs/content/providers/rancher.md index e9fb3b15e..c3b472bbd 100644 --- a/docs/content/providers/rancher.md +++ b/docs/content/providers/rancher.md @@ -83,7 +83,7 @@ If set to false, services that don't have a `traefik.enable=true` label will be ### `DefaultRule` -_Optional, Default=Host(`{{ normalize .Name }}`)_ +_Optional, Default=```Host(`{{ normalize .Name }}`)```_ The default host rule for all services. @@ -93,8 +93,15 @@ augmented with the [sprig template functions](http://masterminds.github.io/sprig The service name can be accessed as the `Name` identifier, and the template has access to all the labels defined on this container. -```toml -defaultRule = "Host(`{{ .Name }}.{{ index .Labels \"customLabel\"}}`)" +```toml tab="File" +[rancher] +defaultRule = "" +# ... +``` + +```txt tab="CLI" +--providers.rancher +--providers.rancher.defaultRule="Host(`{{ .Name }}.{{ index .Labels \"customLabel\"}}`)" ``` This option can be overridden on a container basis with the `traefik.http.routers.Router1.rule` label. @@ -163,6 +170,8 @@ For example, to declare a middleware [`schemeredirect`](../middlewares/redirects If you declare multiple middleware with the same name but with different parameters, the middleware fails to be declared. +More information about available middlewares in the dedicated [middlewares section](../middlewares/overview.md). + ### Specific Options #### `traefik.enable`