Improve ruleSyntax option documentation
This commit is contained in:
parent
c5c61dbade
commit
c3545c620b
2 changed files with 13 additions and 1 deletions
|
@ -533,6 +533,8 @@ The default rule matchers syntax is now the v3 one, but for backward compatibili
|
||||||
The v2 rule matchers syntax is deprecated and its support will be removed in the next major version.
|
The v2 rule matchers syntax is deprecated and its support will be removed in the next major version.
|
||||||
For this reason, we encourage migrating to the new syntax.
|
For this reason, we encourage migrating to the new syntax.
|
||||||
|
|
||||||
|
By default, the `defaultRuleSyntax` static option is automatically set to `v3`, meaning that the default rule is the new one.
|
||||||
|
|
||||||
#### New V3 Syntax Notable Changes
|
#### New V3 Syntax Notable Changes
|
||||||
|
|
||||||
The `Headers` and `HeadersRegexp` matchers have been renamed to `Header` and `HeaderRegexp` respectively.
|
The `Headers` and `HeadersRegexp` matchers have been renamed to `Header` and `HeaderRegexp` respectively.
|
||||||
|
|
|
@ -517,10 +517,15 @@ A value of `0` for the priority is ignored: `priority = 0` means that the defaul
|
||||||
|
|
||||||
### RuleSyntax
|
### RuleSyntax
|
||||||
|
|
||||||
|
_Optional, Default=""_
|
||||||
|
|
||||||
In Traefik v3 a new rule syntax has been introduced ([migration guide](../../migration/v2-to-v3.md#router-rule-matchers)).
|
In Traefik v3 a new rule syntax has been introduced ([migration guide](../../migration/v2-to-v3.md#router-rule-matchers)).
|
||||||
`ruleSyntax` option allows to configure the rule syntax to be used for parsing the rule on a per-router basis.
|
`ruleSyntax` option allows to configure the rule syntax to be used for parsing the rule on a per-router basis.
|
||||||
This allows to have heterogeneous router configurations and ease migration.
|
This allows to have heterogeneous router configurations and ease migration.
|
||||||
|
|
||||||
|
The default value of the `ruleSyntax` option is inherited from the `defaultRuleSyntax` option in the static configuration.
|
||||||
|
By default, the `defaultRuleSyntax` static option is `v3`, meaning that the default rule syntax is also `v3`.
|
||||||
|
|
||||||
??? example "Set rule syntax -- using the [File Provider](../../providers/file.md)"
|
??? example "Set rule syntax -- using the [File Provider](../../providers/file.md)"
|
||||||
|
|
||||||
```yaml tab="File (YAML)"
|
```yaml tab="File (YAML)"
|
||||||
|
@ -870,7 +875,7 @@ The [supported `provider` table](../../https/acme.md#providers) indicates if the
|
||||||
|
|
||||||
### General
|
### General
|
||||||
|
|
||||||
If both HTTP routers and TCP routers listen to the same EntryPoint, the TCP routers will apply *before* the HTTP routers.
|
If both HTTP routers and TCP routers listen to the same EntryPoint, the TCP routers will apply _before_ the HTTP routers.
|
||||||
If no matching route is found for the TCP routers, then the HTTP routers will take over.
|
If no matching route is found for the TCP routers, then the HTTP routers will take over.
|
||||||
|
|
||||||
### EntryPoints
|
### EntryPoints
|
||||||
|
@ -1217,10 +1222,15 @@ A value of `0` for the priority is ignored: `priority = 0` means that the defaul
|
||||||
|
|
||||||
### RuleSyntax
|
### RuleSyntax
|
||||||
|
|
||||||
|
_Optional, Default=""_
|
||||||
|
|
||||||
In Traefik v3 a new rule syntax has been introduced ([migration guide](../../migration/v2-to-v3.md#router-rule-matchers)).
|
In Traefik v3 a new rule syntax has been introduced ([migration guide](../../migration/v2-to-v3.md#router-rule-matchers)).
|
||||||
`ruleSyntax` option allows to configure the rule syntax to be used for parsing the rule on a per-router basis.
|
`ruleSyntax` option allows to configure the rule syntax to be used for parsing the rule on a per-router basis.
|
||||||
This allows to have heterogeneous router configurations and ease migration.
|
This allows to have heterogeneous router configurations and ease migration.
|
||||||
|
|
||||||
|
The default value of the `ruleSyntax` option is inherited from the `defaultRuleSyntax` option in the static configuration.
|
||||||
|
By default, the `defaultRuleSyntax` static option is `v3`, meaning that the default rule syntax is also `v3`.
|
||||||
|
|
||||||
??? example "Set rule syntax -- using the [File Provider](../../providers/file.md)"
|
??? example "Set rule syntax -- using the [File Provider](../../providers/file.md)"
|
||||||
|
|
||||||
```yaml tab="File (YAML)"
|
```yaml tab="File (YAML)"
|
||||||
|
|
Loading…
Reference in a new issue