Basics - Træfik - 0 views
-
Modifier rules only modify the request. They do not have any impact on routing decisions being made.
-
A frontend consists of a set of rules that determine how incoming requests are forwarded from an entrypoint to a backend.
- ...27 more annotations...
-
In order to use regular expressions with Host and Path matchers, you must declare an arbitrarily named variable followed by the colon-separated regular expression, all enclosed in curly braces.
-
Use a *Prefix* matcher if your backend listens on a particular base path but also serves requests on sub-paths. For instance, PathPrefix: /products would match /products but also /products/shoes and /products/shirts. Since the path is forwarded as-is, your backend is expected to listen on /products
-
Use Path if your backend listens on the exact path only. For instance, Path: /products would match /products but not /products/shoes.
-
A backend is responsible to load-balance the traffic coming from one or more frontends to a set of http servers
-
To proactively prevent backends from being overwhelmed with high load, a maximum connection limit can also be applied to each backend.
-
The check is defined by a path appended to the backend URL and an interval (given in a format understood by time.ParseDuration) specifying how often the health check should be executed (the default being 30 seconds). Each backend must respond to the health check within 5 seconds.
-
The static configuration is the global configuration which is setting up connections to configuration backends and entrypoints.
-
We only need to enable watch option to make Træfik watch configuration backend changes and generate its configuration automatically.
-
Modifiers will be applied in a pre-determined order regardless of their order in the rule configuration section.
-
Custom headers can be configured through the frontends, to add headers to either requests or responses that match the frontend's rules.
-
Security related headers (HSTS headers, SSL redirection, Browser XSS filter, etc) can be added and configured per frontend in a similar manner to the custom headers above.
-
Servers are simply defined using a url. You can also apply a custom weight to each server (this will be used by load-balancing).
-
Maximum connections can be configured by specifying an integer value for maxconn.amount and maxconn.extractorfunc which is a strategy used to determine how to categorize requests in order to evaluate the maximum connections.