@@ -36,8 +36,10 @@ In the process, routers may use pieces of [middleware](../../middlewares/overvie
36
36
[entryPoints.mysql-default]
37
37
address = ":80"
38
38
[entryPoints.mysql-default]
39
- address = ":3306"
40
-
39
+ address = ":3306"
40
+ ```
41
+
42
+ ```toml
41
43
[tcp]
42
44
[tcp.routers]
43
45
[tcp.routers.to-database]
@@ -50,8 +52,8 @@ In the process, routers may use pieces of [middleware](../../middlewares/overvie
50
52
51
53
### EntryPoints
52
54
53
- If not specified, HTTP routers will accept requests from all defined entrypoints .
54
- If you want to limit the router scope to a set of entrypoints , set the entrypoints option.
55
+ If not specified, HTTP routers will accept requests from all defined entry points .
56
+ If you want to limit the router scope to a set of entry points , set the ` entryPoints ` option.
55
57
56
58
??? example "Listens to Every EntryPoint"
57
59
@@ -63,7 +65,9 @@ If you want to limit the router scope to a set of entrypoints, set the entrypoin
63
65
# ...
64
66
[entryPoints.other]
65
67
# ...
66
-
68
+ ```
69
+
70
+ ```toml
67
71
[http.routers]
68
72
[http.routers.Router-1]
69
73
# By default, routers listen to every entrypoints
@@ -81,7 +85,9 @@ If you want to limit the router scope to a set of entrypoints, set the entrypoin
81
85
# ...
82
86
[entryPoints.other]
83
87
# ...
84
-
88
+ ```
89
+
90
+ ```toml
85
91
[http.routers]
86
92
[http.routers.Router-1]
87
93
entryPoints = ["web-secure", "other"] # won't listen to entrypoint web
@@ -97,14 +103,15 @@ If the rule is verified, the router becomes active, calls middlewares, and then
97
103
??? example "Host is traefik.io"
98
104
99
105
```toml
100
- rule = "Host(`traefik.io`)"
106
+ rule = "Host(`traefik.io`)"
101
107
```
102
108
103
109
??? example "Host is traefik.io OR Host is containo.us AND path is /traefik"
104
110
105
111
```toml
106
- rule = "Host(`traefik.io`) || (Host(`containo.us`) && Path(`/traefik`))"
112
+ rule = "Host(`traefik.io`) || (Host(`containo.us`) && Path(`/traefik`))"
107
113
```
114
+
108
115
The table below lists all the available matchers:
109
116
110
117
| Rule | Description |
@@ -126,7 +133,7 @@ The table below lists all the available matchers:
126
133
127
134
!!! tip "Combining Matchers Using Operators and Parenthesis"
128
135
129
- You can combine multiple matchers using the AND (`&&`) and OR (`||) operators. You can also use parenthesis.
136
+ You can combine multiple matchers using the AND (`&&`) and OR (`||` ) operators. You can also use parenthesis.
130
137
131
138
!!! important "Rule, Middleware, and Services"
132
139
@@ -212,7 +219,6 @@ It refers to a [tlsOptions](../../https/tls.md#tls-options) and will be applied
212
219
[http.routers.Router-1.tls] # will terminate the TLS request
213
220
options = "foo"
214
221
215
-
216
222
[tlsOptions]
217
223
[tlsOptions.foo]
218
224
minVersion = "VersionTLS12"
@@ -234,7 +240,7 @@ If no matching route is found for the TCP routers, then the HTTP routers will ta
234
240
If not specified, TCP routers will accept requests from all defined entry points.
235
241
If you want to limit the router scope to a set of entry points, set the entry points option.
236
242
237
- ??? example "Listens to Every EntryPoint "
243
+ ??? example "Listens to Every Entry Point "
238
244
239
245
```toml
240
246
[entryPoints]
@@ -244,7 +250,9 @@ If you want to limit the router scope to a set of entry points, set the entry po
244
250
# ...
245
251
[entryPoints.other]
246
252
# ...
247
-
253
+ ```
254
+
255
+ ```toml
248
256
[tcp.routers]
249
257
[tcp.routers.Router-1]
250
258
# By default, routers listen to every entrypoints
@@ -253,7 +261,7 @@ If you want to limit the router scope to a set of entry points, set the entry po
253
261
[tcp.routers.Router-1.tls] # will route TLS requests (and ignore non tls requests)
254
262
```
255
263
256
- ??? example "Listens to Specific EntryPoints "
264
+ ??? example "Listens to Specific Entry Points "
257
265
258
266
```toml
259
267
[entryPoints]
@@ -263,7 +271,9 @@ If you want to limit the router scope to a set of entry points, set the entry po
263
271
# ...
264
272
[entryPoints.other]
265
273
# ...
274
+ ```
266
275
276
+ ```toml
267
277
[tcp.routers]
268
278
[tcp.routers.Router-1]
269
279
entryPoints = ["web-secure", "other"] # won't listen to entrypoint web
@@ -340,7 +350,6 @@ It refers to a [tlsOptions](../../https/tls.md#tls-options) and will be applied
340
350
[tcp.routers.Router-1.tls] # will terminate the TLS request
341
351
options = "foo"
342
352
343
-
344
353
[tlsOptions]
345
354
[tlsOptions.foo]
346
355
minVersion = "VersionTLS12"
0 commit comments