content large_stringlengths 3 20.5k | url large_stringlengths 53 192 ⌀ | branch large_stringclasses 4
values | source large_stringclasses 50
values | embeddings listlengths 384 384 | score float64 -0.21 0.65 |
|---|---|---|---|---|---|
# Traefik & Docker One of the best feature of Traefik is to delegate the routing configuration to the application level. With Docker, Traefik can leverage labels attached to a container to generate routing rules. !!! warning "Labels & sensitive data" We recommend to \*not\* use labels to store sensitive data (certifica... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/other-providers/docker.md | master | traefik | [
-0.058700721710920334,
0.061962373554706573,
-0.11117136478424072,
-0.020931491628289223,
-0.0478496290743351,
-0.12116151303052902,
0.03965643048286438,
0.02012878842651844,
-0.01294716540724039,
-0.010911901481449604,
-0.0035655656829476357,
-0.04247163236141205,
0.007980171591043472,
-0... | 0.100607 |
| | [`traefik.http.routers..entrypoints`](#opt-traefik-http-routers-router-name-entrypoints "#opt-traefik-http-routers-router-name-entrypoints") | See [entry points](../../install-configuration/entrypoints.md) for more information. | `ep1,ep2` | | [`traefik.http.routers..middlewares`](#opt-traefik-http-routers-router-n... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/other-providers/docker.md | master | traefik | [
-0.06726031005382538,
0.012865932658314705,
-0.1355937123298645,
-0.0830017700791359,
0.040163252502679825,
-0.13096053898334503,
0.009970282204449177,
0.012706195935606956,
-0.029288901016116142,
-0.0006427137996070087,
0.04415248706936836,
-0.02034015581011772,
-0.039089642465114594,
-0.... | 0.091095 |
"The character `@` is not authorized in the middleware name." ??? example "Declaring and Referencing a Middleware" ```yaml services: my-container: # ... labels: # Declaring a middleware - traefik.http.middlewares.my-redirect.redirectscheme.scheme=https # Referencing a middleware - traefik.http.routers.my-container.midd... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/other-providers/docker.md | master | traefik | [
-0.05663851276040077,
0.00024539639707654715,
-0.0468030646443367,
-0.10003216564655304,
0.026214836165308952,
-0.08620065450668335,
0.09289819747209549,
0.003864934202283621,
-0.012803182005882263,
0.0187727939337492,
-0.03616982325911522,
-0.04519214853644371,
0.033463552594184875,
0.053... | 0.128483 |
You can declare both a UDP Router/Service and an HTTP Router/Service for the same container (but you have to do so manually). #### UDP Routers ##### Configuration Options | Label | Description | Value | |------|-------------|-------| | [`traefik.udp.routers..entrypoints`](#opt-traefik-udp-routers-router-name-entrypoint... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/other-providers/docker.md | master | traefik | [
-0.0907042920589447,
0.026831690222024918,
-0.09657496213912964,
-0.06355281174182892,
0.005181059706956148,
-0.1013716459274292,
0.01205658633261919,
0.051497433334589005,
-0.05088347569108009,
-0.031456273049116135,
0.013145710341632366,
-0.022523146122694016,
-0.04701123386621475,
-0.01... | 0.016716 |
# Traefik & KV Stores ## Configuration Examples ??? example "Configuring KV Store & Deploying / Exposing one Service" Enabling a KV store provider (example: Consul) ```yaml tab="Structured (YAML)" providers: consul: endpoints: - "127.0.0.1:8500" ``` ```toml tab="Structured (TOML)" [providers.consul] endpoints = ["127.0... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/other-providers/kv.md | master | traefik | [
-0.0401245653629303,
0.02411729469895363,
-0.15161319077014923,
-0.0592440664768219,
-0.1072506383061409,
-0.0682881623506546,
-0.042777057737112045,
0.05814630538225174,
0.0018930925289168954,
0.011544426903128624,
0.07271219044923782,
-0.05603669583797455,
0.022456509992480278,
0.0167600... | 0.041595 |
"#opt-traefikhttpservicesmyserviceloadbalancerpasshostheader") | See [Service](../http/load-balancing/service.md) for more information. | `true` | | [`traefik/http/services/myservice/loadbalancer/healthcheck/headers/X-Foo`](#opt-traefikhttpservicesmyserviceloadbalancerhealthcheckheadersX-Foo "#opt-traefikhttpservicesmy... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/other-providers/kv.md | master | traefik | [
-0.07850376516580582,
0.048472341150045395,
-0.07366400212049484,
-0.060254327952861786,
-0.005360207054764032,
-0.13951803743839264,
0.06168738752603531,
-0.041198428720235825,
0.02513766661286354,
-0.011583882384002209,
0.019357677549123764,
-0.03750395029783249,
0.03619786351919174,
-0.... | 0.080785 |
points](../../install-configuration/entrypoints.md) for more information. | `ep2` | | [`traefik/tcp/routers/my-router/rule`](#opt-traefiktcproutersmy-routerrule "#opt-traefiktcproutersmy-routerrule") | See [entry points](../../install-configuration/entrypoints.md) for more information. | ```HostSNI(`example.com`)``` | ... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/other-providers/kv.md | master | traefik | [
-0.04230529069900513,
0.04691899195313454,
-0.1129094809293747,
-0.056711792945861816,
0.009486930444836617,
-0.12774871289730072,
0.0766771212220192,
0.01074648555368185,
-0.01937847211956978,
0.002196625340729952,
0.01996212638914585,
-0.029115742072463036,
0.0008732741698622704,
-0.0215... | 0.058037 |
[`traefik/tls/options/Options0/disableSessiontickets`](#opt-traefiktlsoptionsOptions0disableSessiontickets "#opt-traefiktlsoptionsOptions0disableSessiontickets") | See [TLS Options](../http/tls/tls-options.md) for more information. | `true` | ### TLS Default Generated Certificates You can configure Traefik to use an AC... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/other-providers/kv.md | master | traefik | [
-0.08012911677360535,
0.05006199702620506,
-0.09542649984359741,
0.012753237038850784,
-0.08257447183132172,
-0.12518608570098877,
0.027288727462291718,
0.0410785973072052,
0.017550328746438026,
-0.021919259801506996,
0.005134650506079197,
-0.06053217872977257,
0.012179659679532051,
0.0247... | 0.039367 |
## General When a TCP router is configured to handle TLS traffic, include a `tls` field in its definition. This field tells Traefik that the router should process only TLS connections and ignore non-TLS traffic. By default, a router with a TLS field will terminate the TLS connections, meaning that it will send decrypte... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/tcp/tls.md | master | traefik | [
-0.09370554983615875,
0.07042289525270462,
-0.07341344654560089,
-0.043676745146512985,
-0.0482698455452919,
-0.16230030357837677,
0.047093477100133896,
-0.04028723016381264,
0.07305935770273209,
-0.018817344680428505,
-0.037421420216560364,
-0.020639542490243912,
0.03372868523001671,
0.00... | 0.023614 |
- An ACME challenge type must be configured for the certificate resolver ## Custom Domains When using ACME certificate resolvers, domains are automatically extracted from router rules, but the `tls.domains` option allows you to explicitly specify the domains and Subject Alternative Names (SANs) for which certificates s... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/tcp/tls.md | master | traefik | [
-0.09378907084465027,
0.05100896954536438,
-0.08688205480575562,
0.008583110757172108,
-0.018045978620648384,
-0.10592123121023178,
-0.01967940665781498,
0.0006384256994351745,
-0.023685457184910774,
-0.03125152736902237,
-0.019675523042678833,
-0.0797787457704544,
0.03168565407395363,
0.0... | 0.035078 |
ServersTransport allows to configure the transport between Traefik and your TCP servers. ## Configuration Example Declare the serversTransport: ```yaml tab="Structured (YAML)" tcp: serversTransports: mytransport: dialTimeout: "30s" dialKeepAlive: "20s" terminationDelay: "200ms" tls: serverName: "example.com" certificat... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/tcp/serverstransport.md | master | traefik | [
-0.05983405187726021,
0.007156508509069681,
-0.12654410302639008,
-0.025978349149227142,
-0.06789880245923996,
-0.10095856338739395,
0.025367189198732376,
0.019259599968791008,
0.024232735857367516,
-0.019671404734253883,
0.03762509301304817,
-0.061506450176239014,
0.04837704822421074,
0.0... | 0.050223 |
to propagate that intent to the other side, and so when that happens, it also does the same on its connection with the other side (e.g. backend side). However, if for some reason (bad implementation, or malicious intent) the other side does not eventually do the same as well, the connection would stay half-open, which ... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/tcp/serverstransport.md | master | traefik | [
-0.10583912581205368,
0.04503025487065315,
-0.038530781865119934,
-0.009985842742025852,
-0.050680872052907944,
-0.07831406593322754,
0.043816521763801575,
-0.014622078277170658,
0.06180398538708687,
0.01257268525660038,
-0.03009023331105709,
0.1144883930683136,
-0.0033411800395697355,
-0.... | 0.08719 |
## General Each of the fields of the service section represents a kind of service. Which means, that for each specified service, one of the fields, and only one, has to be enabled to define what kind of service is created. Currently, the two available kinds are `LoadBalancer`, and `Weighted`. ## Servers Load Balancer T... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/tcp/service.md | master | traefik | [
-0.13047289848327637,
0.012202034704387188,
-0.05065637454390526,
-0.06424500793218613,
-0.05612647533416748,
-0.0895196720957756,
0.05415943264961243,
-0.015035228803753853,
0.04972287639975548,
0.025402477011084557,
-0.023881595581769943,
0.019846780225634575,
0.08717694133520126,
-0.020... | 0.093143 |
[services](./service.md) and not between servers. !!! info "Supported Providers" This strategy can be defined currently with the [File provider](../../install-configuration/providers/others/file.md). ```yaml tab="Structured (YAML)" tcp: services: app: weighted: services: - name: appv1 weight: 3 - name: appv2 weight: 1 ... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/tcp/service.md | master | traefik | [
-0.10825428366661072,
0.00621826434507966,
-0.02079525589942932,
-0.11721467971801758,
-0.05988768860697746,
-0.10307233035564423,
0.011114435270428658,
-0.06338922679424286,
0.028823215514421463,
0.01593709923326969,
-0.0007002351339906454,
0.03990396857261658,
0.05998986214399338,
0.0296... | 0.004209 |
# TCP Middleware Overview Attached to the routers, pieces of middleware are a means of tweaking the requests before they are sent to your service (or before the answer from the services are sent to the clients). There are several available middlewares in Traefik, some can modify the request, the headers, some are in ch... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/tcp/middlewares/overview.md | master | traefik | [
-0.12779013812541962,
0.03537679836153984,
-0.04426082968711853,
-0.05976260453462601,
-0.000688627187628299,
-0.11136259883642197,
0.05049895495176315,
-0.009549422189593315,
0.029062867164611816,
0.021602662280201912,
-0.037144362926483154,
-0.00022349442588165402,
-0.007469175383448601,
... | 0.194429 |
To proactively prevent Services from being overwhelmed with high load, the number of allowed simultaneous connections by IP can be limited with the `inFlightConn` TCP middleware. ## Configuration Examples ```yaml tab="Structured (YAML)" # Limiting to 10 simultaneous connections tcp: middlewares: test-inflightconn: inFl... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/tcp/middlewares/inflightconn.md | master | traefik | [
-0.026748202741146088,
-0.005298721604049206,
-0.05743017792701721,
-0.033100735396146774,
-0.07678956538438797,
-0.0837424248456955,
0.03150466829538345,
-0.012318739667534828,
0.024748574942350388,
0.07075119018554688,
-0.03825288265943527,
0.03922173008322716,
-0.017511773854494095,
0.0... | 0.100766 |
`iPAllowList` limits allowed requests based on the client IP. ## Configuration Examples ```yaml tab="Structured (YAML)" # Accepts request from defined IP tcp: middlewares: test-ipallowlist: ipAllowList: sourceRange: - "127.0.0.1/32" - "192.168.1.7" ``` ```toml tab="Structured (TOML)" # Accepts request from defined IP [... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/tcp/middlewares/ipallowlist.md | master | traefik | [
-0.07479758560657501,
0.03919036686420441,
-0.09369518607854843,
-0.0817023366689682,
-0.06881021708250046,
-0.1306079626083374,
0.0143348453566432,
-0.0439695380628109,
-0.025674548000097275,
-0.002722690347582102,
0.025589754804968834,
-0.032551269978284836,
-0.016167914494872093,
0.0279... | 0.072536 |
## TCP Router A TCP router is in charge of connecting incoming TCP connections to the services that can handle them. TCP routers analyze incoming connections based on rules, and when a match is found, forward the connection through any configured middlewares to the appropriate service. !!! note "TCP vs HTTP Routing" If... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/tcp/routing/router.md | master | traefik | [
-0.0753868967294693,
0.026281889528036118,
-0.0024034639354795218,
-0.08816695958375931,
-0.01728147827088833,
-0.08521201461553574,
-0.02058206871151924,
-0.0392930805683136,
0.07352131605148315,
0.019951166585087776,
-0.011666657403111458,
0.006170785985887051,
-0.0043998840264976025,
0.... | 0.067776 |
## General !!! note - The character @ is not authorized in the router name - If both HTTP routers and TCP routers listen to the same [EntryPoint](../../../install-configuration/entrypoints.md), the TCP routers will apply before the HTTP routers. If no matching route is found for the TCP routers, then the HTTP routers w... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/tcp/routing/rules-and-priority.md | master | traefik | [
-0.061007097363471985,
0.020804623141884804,
-0.012588735669851303,
-0.09393919259309769,
-0.015569073148071766,
-0.09528421610593796,
-0.01261268649250269,
-0.035928186029195786,
0.011057119816541672,
0.012705573812127113,
-0.052817922085523605,
-0.00017794563609641045,
0.040362656116485596... | -0.015047 |
```yaml tab="IPv4" ClientIP(`10.76.105.11`) ``` ```yaml tab="IPv6" ClientIP(`::1`) ``` Match connections coming from a given subnet: ```yaml tab="IPv4" ClientIP(`192.168.1.0/24`) ``` ```yaml tab="IPv6" ClientIP(`fe80::/10`) ``` ### ALPN The `ALPN` matcher allows matching connections the given protocol. It would be a se... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/tcp/routing/rules-and-priority.md | master | traefik | [
-0.15109099447727203,
0.03542407602071762,
-0.03134659305214882,
-0.026434361934661865,
-0.0520571731030941,
-0.05622660741209984,
0.033336564898490906,
-0.038361553102731705,
0.052417777478694916,
-0.016215328127145767,
0.029418272897601128,
-0.00082035904051736,
-0.011869929730892181,
0.... | 0.029442 |
ServersTransport allows you to configure the transport between Traefik and your HTTP servers. ## Configuration Example Declare the serversTransport: ```yaml tab="Structured (YAML)" http: serversTransports: mytransport: serverName: "myhost" certificates: - "/path/to/cert1.pem" - "/path/to/cert2.pem" insecureSkipVerify: ... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/load-balancing/serverstransport.md | master | traefik | [
-0.058000728487968445,
0.010824296623468399,
-0.14901624619960785,
-0.005352201871573925,
-0.036110177636146545,
-0.12223874777555466,
-0.008028875105082989,
0.008417662233114243,
0.006666349712759256,
0.009944772347807884,
0.045943573117256165,
-0.038509320467710495,
0.018950972706079483,
... | 0.069253 |
[`spiffe`](#opt-spiffe "#opt-spiffe") | Defines the SPIFFE configuration. An empty `spiffe` section enables SPIFFE (that allows any SPIFFE ID). | | No | | [`spiffe.ids`](#opt-spiffe-ids "#opt-spiffe-ids") | Defines the allowed SPIFFE IDs. This takes precedence over the SPIFFE TrustDomain. | [] | No | | [`spiffe.trustDo... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/load-balancing/serverstransport.md | master | traefik | [
-0.015410981141030788,
0.006526537239551544,
-0.09345830976963043,
-0.02140822261571884,
-0.005397896282374859,
-0.055626168847084045,
0.0409286729991436,
-0.08146955072879791,
-0.06067682430148125,
-0.07255908846855164,
0.0825108140707016,
-0.07142477482557297,
0.11808529496192932,
0.0308... | -0.062736 |
Traefik services define how to distribute incoming traffic across your backend servers. This page covers two main concepts: - \*\*Service Load Balancer\*\*: Routes traffic to backend servers using various load balancing strategies - \*\*Advanced Service Types\*\*: Compose multiple services together for weighted distrib... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/load-balancing/service.md | master | traefik | [
-0.11624578386545181,
-0.03187564015388489,
-0.12036415189504623,
-0.015972323715686798,
-0.07874905318021774,
-0.14849013090133667,
0.05773840472102165,
0.032143086194992065,
0.02027939446270466,
0.0439378097653389,
-0.036903608590364456,
0.02107376977801323,
0.011732266284525394,
-0.0514... | 0.224072 |
#### Servers Servers represent individual backend instances for your service. The [service loadBalancer](#service-load-balancer) `servers` option lets you configure the list of instances that will handle incoming requests. ##### Configuration Options | Field | Description | Required | |----------------|----------------... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/load-balancing/service.md | master | traefik | [
-0.1071380227804184,
-0.019713573157787323,
-0.040607720613479614,
0.00846044160425663,
-0.03822828456759453,
-0.06375636905431747,
0.025228489190340042,
-0.0383317694067955,
0.03252477943897247,
0.005107843782752752,
-0.036119505763053894,
-0.0029980672989040613,
0.09201380610466003,
-0.0... | 0.021159 |
strategy: "leasttime" servers: - url: "http://private-ip-server-1/" - url: "http://private-ip-server-2/" - url: "http://private-ip-server-3/" ``` ```toml tab="Structured (TOML)" ## Routing configuration [http.services] [http.services.my-service.loadBalancer] strategy = "leasttime" [[http.services.my-service.loadBalance... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/load-balancing/service.md | master | traefik | [
-0.11666467785835266,
0.0417262502014637,
-0.05111038312315941,
-0.04490538313984871,
-0.05323665961623192,
-0.11735372990369797,
-0.029748311266303062,
-0.04596666246652603,
0.012765640392899513,
0.017268970608711243,
0.015945686027407646,
0.0048674326390028,
0.0162584837526083,
-0.038673... | 0.050904 |
new server (and the cookie will keep track of the new server). #### Cookie Name The default cookie name is an abbreviation of a sha1 (ex: `\_1d52e`). #### MaxAge By default, the affinity cookie will never expire as the `MaxAge` option is set to zero. This option indicates the number of seconds until the cookie expires.... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/load-balancing/service.md | master | traefik | [
-0.053426001220941544,
-0.07299573719501495,
-0.07829207181930542,
0.004975609481334686,
-0.00011357831681380048,
-0.09550342708826065,
0.06293024867773056,
-0.052101027220487595,
-0.01489922497421503,
-0.058500636368989944,
0.07385938614606857,
0.005934506189078093,
-0.011599372141063213,
... | 0.081502 |
to be marked as unhealthy. It also defines for how long the server will be considered unhealthy. | 10s | No | | [`maxFailedAttempts`](#opt-maxFailedAttempts "#opt-maxFailedAttempts") | Defines the number of consecutive failed attempts allowed within the failure window before marking the server as unhealthy. | 1 | No | ... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/load-balancing/service.md | master | traefik | [
-0.04985485598444939,
-0.01956319436430931,
0.006142308469861746,
-0.037595484405756,
0.08954732865095139,
-0.03774276003241539,
-0.022353893145918846,
0.015679622069001198,
-0.02795502543449402,
0.008980433456599712,
-0.03242087736725807,
0.05776297301054001,
0.04286178946495056,
0.000802... | 0.131083 |
healthCheck: {} services: - name: appv1 weight: 3 - name: appv2 weight: 1 appv1: loadBalancer: healthCheck: path: /status interval: 10s timeout: 3s servers: - url: "http://private-ip-server-1/" appv2: loadBalancer: healthCheck: path: /status interval: 10s timeout: 3s servers: - url: "http://private-ip-server-2/" ``` ``... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/load-balancing/service.md | master | traefik | [
-0.059954654425382614,
0.0652599036693573,
-0.009819144383072853,
-0.02774958871304989,
-0.02831822820007801,
-0.10510601103305817,
-0.01457629818469286,
-0.05519987642765045,
0.04154827073216438,
0.006119572091847658,
-0.013957378454506397,
-0.02210928313434124,
0.020139126107096672,
-0.0... | -0.002949 |
request. # If the body is larger, the request is not mirrored. # Default value is -1, which means unlimited size. maxBodySize: 1024 mirrors: - name: appv2 # Percent defines the percentage of requests that should be mirrored. # Default value is 0, which means no traffic will be sent to the mirror. percent: 10 appv1: loa... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/load-balancing/service.md | master | traefik | [
-0.07893581688404083,
0.008541901595890522,
0.039019230753183365,
-0.05323381721973419,
-0.08545252680778503,
-0.14250124990940094,
-0.09496325999498367,
-0.0027941795997321606,
-0.027547404170036316,
0.030743742361664772,
-0.013516700826585293,
0.0016130644362419844,
0.025328945368528366,
... | -0.051254 |
healthCheck: {} service: main fallback: backup main: loadBalancer: healthCheck: path: /status interval: 10s timeout: 3s servers: - url: "http://private-ip-server-1/" backup: loadBalancer: healthCheck: path: /status interval: 10s timeout: 3s servers: - url: "http://private-ip-server-2/" ``` ```toml tab="Structured (TOML... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/load-balancing/service.md | master | traefik | [
-0.0743299201130867,
0.037586163729429245,
-0.011446098797023296,
-0.03509848192334175,
-0.011858458630740643,
-0.08673792332410812,
-0.05076058208942413,
-0.030841391533613205,
0.027284037321805954,
0.020001547411084175,
-0.03513587266206741,
0.012111391872167587,
0.015895474702119827,
-0... | -0.014539 |
The `compress` middleware compresses response. It supports Gzip, Brotli and Zstandard compression ## Configuration Examples ```yaml tab="Structured (YAML)" # Enable compression http: middlewares: test-compress: compress: {} ``` ```toml tab="Structured (TOML)" # Enable compression [http.middlewares] [http.middlewares.te... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/compress.md | master | traefik | [
-0.14737941324710846,
0.08090987801551819,
-0.07311949878931046,
-0.03807174041867256,
0.05481340363621712,
-0.11066364496946335,
-0.07156402617692947,
-0.004871258977800608,
0.01750803180038929,
0.03595323860645294,
-0.02103678323328495,
-0.012720475904643536,
0.010332128964364529,
-0.002... | 0.165838 |
The `stripPrefix` middleware strips the matching path prefix and stores it in an `X-Forwarded-Prefix` header. !!! tip Use a `StripPrefix` middleware if your backend listens on the root path (`/`) but should be exposed on a specific prefix. ## Configuration Examples ```yaml tab="Structured (YAML)" # Strip prefix /foobar... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/stripprefix.md | master | traefik | [
-0.03350800648331642,
0.04960046336054802,
0.03538123518228531,
-0.08515412360429764,
0.007703796029090881,
-0.08389429748058319,
-0.052735235542058945,
-0.01571536995470524,
-0.00245645921677351,
-0.030644861981272697,
0.029097268357872963,
0.0106473034247756,
0.028847580775618553,
0.0055... | -0.026262 |
# HTTP Middleware Overview Attached to [routers](../routing/router.md) or [services](../load-balancing/service.md), pieces of middleware are a means of tweaking the requests before they are sent to your backend servers (or before the answer is sent to the clients). Middlewares can be attached at two levels: - \*\*Route... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/overview.md | master | traefik | [
-0.12037912756204605,
0.02444775030016899,
-0.006896707229316235,
-0.07938891649246216,
0.0741424635052681,
-0.14245091378688812,
0.00664592394605279,
0.016291527077555656,
0.029350489377975464,
0.03689369931817055,
-0.06626459956169128,
0.030701257288455963,
0.037640754133462906,
-0.02647... | 0.229107 |
!!! info "Traefik Hub Feature" This middleware is available exclusively in [Traefik Hub](https://traefik.io/traefik-hub/). Learn more about [Traefik Hub's advanced features](https://doc.traefik.io/traefik-hub/api-gateway/intro). The Distributed RateLimit middleware ensures that requests are limited over time throughout... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/distributed-ratelimit.md | master | traefik | [
-0.08748581260442734,
0.0029414573218673468,
-0.07122169435024261,
-0.0233340784907341,
0.0018243654631078243,
-0.1468621790409088,
-0.02743734046816826,
0.0027668247930705547,
0.013310438953340054,
0.0649816021323204,
-0.014074123464524746,
-0.026508329436182976,
-0.003819955512881279,
-0... | 0.222167 |
| | [`store.redis.cluster`](#opt-store-redis-cluster "#opt-store-redis-cluster") | Enable Redis Cluster | "" | No | | [`store.redis.tls.caBundle`](#opt-store-redis-tls-caBundle "#opt-store-redis-tls-caBundle") | Custom CA bundle | "" | No | | [`store.redis.tls.cert`](#opt-store-redis-tls-cert "#opt-store-redis-tls-cert... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/distributed-ratelimit.md | master | traefik | [
-0.047179609537124634,
0.03493937477469444,
-0.1072734072804451,
0.008821975439786911,
0.011379756033420563,
-0.05837668478488922,
0.038046739995479584,
-0.008827398531138897,
-0.005512911360710859,
-0.005632724147289991,
0.07273004949092865,
-0.04839489981532097,
0.08383552730083466,
0.02... | 0.021256 |
match the list of `X-Forwarded-For IPs` that are to be excluded, in order to find the actual clientIP. Example to use each IP as a distinct source: | `X-Forwarded-For` | excludedIPs | clientIP | |--------------------------------|-----------------------|--------------| | [`"10.0.0.1,11.0.0.1,12.0.0.1"`](#opt-10-0-0-111-... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/distributed-ratelimit.md | master | traefik | [
-0.005395886022597551,
0.06389271467924118,
-0.009364916011691093,
-0.032358214259147644,
0.030350355431437492,
-0.02969241701066494,
0.12297235429286957,
-0.06866072863340378,
0.025236258283257484,
-0.011051510460674763,
0.04249245300889015,
0.007374933920800686,
0.068172387778759,
-0.043... | -0.046804 |
The `basicAuth` middleware grants access to services to authorized users only. ## Configuration Examples ```yaml tab="Structured (YAML)" # Declaring the user list http: middlewares: test-auth: basicAuth: users: - "test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/" - "test2:$apr1$d9hr9HBB$4HxwgUir3HP4EsggP/QNo0" ``` ```toml ta... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/basicauth.md | master | traefik | [
-0.02356822043657303,
0.01251661404967308,
-0.05362377315759659,
-0.11817286163568497,
0.014356158673763275,
-0.07870454341173172,
0.036307647824287415,
0.005255004391074181,
-0.031915098428726196,
0.028285179287195206,
-0.00010048422700492665,
-0.003296752693131566,
0.08157599717378616,
0... | 0.070339 |
The `retry` middleware retries requests a given number of times to a backend server if that server does not reply. As soon as the server answers, the middleware stops retrying, regardless of the response status. The Retry middleware has an optional configuration to enable an exponential backoff. ## Configuration Exampl... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/retry.md | master | traefik | [
-0.045601919293403625,
-0.04490310698747635,
0.03456508368253708,
0.002011928241699934,
-0.035248976200819016,
-0.10679798573255539,
-0.05974622443318367,
-0.05307267606258392,
0.016147756949067116,
0.07056209444999695,
-0.015393706038594246,
0.010303303599357605,
0.026723844930529594,
-0.... | 0.051164 |
\*\*Web Forms\*\*: 1-5MB is typically sufficient for most form submissions - \*\*API Endpoints\*\*: Consider your largest expected JSON/XML payload + buffer - \*\*File Uploads\*\*: Set based on your maximum expected file size - \*\*High-Traffic Services\*\*: Use smaller limits to prevent resource exhaustion ## disableR... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/retry.md | master | traefik | [
-0.08634283393621445,
0.05011926218867302,
0.029856828972697258,
0.0021703189704567194,
-0.05267435312271118,
-0.04971683397889137,
-0.055154722183942795,
0.0015824863221496344,
-0.05727500468492508,
0.07546642422676086,
-0.03550417721271515,
0.02783321775496006,
0.01938130334019661,
-0.04... | 0.111684 |
The `DigestAuth` middleware grants access to services to authorized users only. ## Configuration Examples ```yaml tab="Structured (YAML)" # Declaring the user list http: middlewares: test-auth: digestAuth: users: - "test:traefik:a2688e031edb4be6a3797f3882655c05" - "test2:traefik:518845800f9e2bfb1f1f740ec24f074e" ``` ``... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/digestauth.md | master | traefik | [
0.0020952075719833374,
0.026387035846710205,
-0.06884665042161942,
-0.10936129838228226,
0.014144803397357464,
-0.1483883410692215,
0.022927721962332726,
-0.038250382989645004,
0.0067968606017529964,
0.013639185577630997,
-0.005903193261474371,
-0.0012063828762620687,
0.04106792062520981,
... | 0.087873 |
The `buffering` middleware limits the size of requests that can be forwarded to services. With buffering, Traefik reads the entire request into memory (possibly buffering large requests into disk), and rejects requests that are over a specified size limit. This can help services avoid large amounts of data (`multipart/... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/buffering.md | master | traefik | [
-0.06148536130785942,
0.02435559779405594,
-0.04655202850699425,
-0.05209338665008545,
-0.02924467995762825,
-0.18318480253219604,
-0.015118326060473919,
0.0331052802503109,
0.013383615761995316,
0.04878761246800423,
-0.04300832748413086,
0.03602224960923195,
-0.03783245012164116,
-0.03105... | 0.186612 |
The `replacePath` middleware will: - Replace the actual path with the specified one. - Store the original path in a `X-Replaced-Path` header ## Configuration Examples ```yaml tab="Structured (YAML)" # Replace the path with /foo http: middlewares: test-replacepath: replacePath: path: "/foo" ``` ```toml tab="Structured (... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/replacepath.md | master | traefik | [
-0.050512880086898804,
0.035500217229127884,
0.020216578617691994,
-0.0502910390496254,
0.03347758203744888,
-0.09652716666460037,
-0.04593176394701004,
-0.007788341026753187,
0.015192524529993534,
0.041844651103019714,
0.01849156990647316,
-0.028771888464689255,
0.005423780996352434,
0.00... | 0.070942 |
The `replacePathRegex` middleware will: - Replace the matching path with the specified one. - Store the original path in an `X-Replaced-Path` header ## Configuration Examples ```yaml tab="File (YAML)" # Replace path with regex http: middlewares: test-replacepathregex: replacePathRegex: regex: "^/foo/(.\*)" replacement:... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/replacepathregex.md | master | traefik | [
-0.02756643295288086,
0.0360325463116169,
0.07134975492954254,
-0.07254284620285034,
0.02775970660150051,
-0.04857388883829117,
-0.012477162294089794,
-0.02771756984293461,
0.07945288717746735,
0.05453722923994064,
-0.015722697600722313,
-0.05413101240992546,
-0.013441975228488445,
0.00536... | 0.086867 |
The `forwardAuth` middleware delegates authentication to an external service. If the service answers with a 2XX code, access is granted, and the original request is performed. Otherwise, the response from the authentication server is returned. ## Configuration Example ```yaml tab="Structured (YAML)" # Forward authentic... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/forwardauth.md | master | traefik | [
-0.11060947179794312,
0.029614225029945374,
-0.05268281325697899,
-0.06346356868743896,
0.033218804746866226,
-0.14796608686447144,
0.005278930999338627,
-0.007921112701296806,
0.012395348399877548,
0.02654915302991867,
-0.01349804736673832,
-0.027018822729587555,
0.05735378712415695,
0.01... | 0.081732 |
Unauthorized. | "" | No | | [`tls.ca`](#opt-tls-ca "#opt-tls-ca") | Sets the path to the certificate authority used for the secured connection to the authentication server, it defaults to the system bundle. | "" | No | | [`tls.cert`](#opt-tls-cert "#opt-tls-cert") | Sets the path to the public certificate used for the ... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/forwardauth.md | master | traefik | [
-0.051786430180072784,
0.07029303163290024,
-0.09514284878969193,
-0.011410769075155258,
-0.04141777381300926,
-0.038652148097753525,
0.06382009387016296,
0.06212480366230011,
0.015597381629049778,
-0.011857154779136181,
0.08751295506954193,
0.009817495010793209,
0.10533034801483154,
0.080... | -0.047947 |
sizes which can lead to DoS attacks and memory exhaustion. ### trustForwardHeader !!! warning `trustForwardHeader` option is deprecated and will be removed in the next major version. Configure the trusted IPs at the [EntryPoint level](../../../install-configuration/entrypoints.md#forwarded-headers) using `forwardedHead... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/forwardauth.md | master | traefik | [
-0.031087810173630714,
0.04521047696471214,
0.024612128734588623,
-0.038553088903427124,
0.06474611908197403,
-0.06706264615058899,
0.003531229682266712,
0.02679572068154812,
-0.00883160624653101,
-0.002120179357007146,
0.003443274414166808,
0.013555760495364666,
0.11103677749633789,
-0.01... | 0.116198 |
!!! info "Traefik Hub Feature" This middleware is available exclusively in [Traefik Hub](https://traefik.io/traefik-hub/). Learn more about [Traefik Hub's advanced features](https://doc.traefik.io/traefik-hub/api-gateway/intro). The API Key authentication middleware allows you to secure an API by requiring a secret key... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/apikey.md | master | traefik | [
-0.07108414173126221,
0.04656771570444107,
-0.09923786669969559,
-0.0491328164935112,
0.03371189907193184,
-0.11831037700176239,
-0.011307677254080772,
0.009278306737542152,
0.014207017607986927,
0.05395165830850601,
-0.0006734305643476546,
-0.05384606122970581,
0.003576823743060231,
-0.03... | 0.192789 |
!!! info "Traefik Hub Feature" This middleware is available exclusively in [Traefik Hub](https://traefik.io/traefik-hub/). Learn more about [Traefik Hub's advanced features](https://doc.traefik.io/traefik-hub/api-gateway/intro). The JWT middleware verifies that a valid JWT token is provided in the `Authorization` heade... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/jwt.md | master | traefik | [
-0.11025767773389816,
0.02996758744120598,
-0.0483565516769886,
-0.03585846722126007,
0.03721875697374344,
-0.08305662125349045,
0.0387270450592041,
0.041775185614824295,
-0.006352113094180822,
-0.00904978346079588,
-0.0392899289727211,
-0.04072641581296921,
0.03557697311043739,
-0.0453819... | 0.217437 |
Defines the HTTP headers to add to requests and populates them with values extracted from the access token claims returned by the authorization server. Claims to be forwarded that are not found in the JWT result in empty headers. The `forwardHeaders` option can only be used with JWT-formatted token. | [] | No | | [`cli... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/jwt.md | master | traefik | [
-0.10758736729621887,
0.1357857882976532,
-0.02892078086733818,
0.005470922216773033,
0.012261012569069862,
-0.05315101519227028,
0.03194673731923103,
0.009080232121050358,
0.07280297577381134,
-0.0299137681722641,
-0.01010451652109623,
-0.039425939321517944,
0.11121086031198502,
0.0203856... | -0.009088 |
If the `key` contains a `\`, it needs to be doubled `\\`. ### clientConfig Defines the configuration used to connect the API Gateway to a Third Party Software such as an Identity Provider. #### `clientConfig.tls` ##### Storing secret values in Kubernetes secrets When configuring the `tls.ca`, `tls.cert`, `tls.key`, it ... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/jwt.md | master | traefik | [
-0.11722235381603241,
0.0013638815144076943,
0.001991676865145564,
-0.04445268213748932,
-0.05437822267413139,
-0.05259789526462555,
0.018681464716792107,
-0.0033555123955011368,
0.14288592338562012,
-0.008233410306274891,
-0.029876522719860077,
-0.08223167806863785,
0.03325317054986954,
-... | 0.125573 |
The `errors` middleware returns a custom page in lieu of the default, according to configured ranges of HTTP Status codes. ## Configuration Examples ```yaml tab="Structured (YAML)" # Dynamic Custom Error Page for 5XX Status Code excluding 502 and 504 http: middlewares: test-errors: errors: status: - "500" - "501" - "50... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/errorpages.md | master | traefik | [
-0.05286711826920509,
0.03443489223718643,
0.039791349321603775,
-0.04447750747203827,
0.020381813868880272,
-0.0817415863275528,
-0.06271498650312424,
-0.017474312335252762,
0.016503779217600822,
0.07196014374494553,
-0.0018116681603714824,
0.029073059558868408,
0.056824155151844025,
0.01... | 0.101004 |
"#opt-url") | The [escaped](https://pkg.go.dev/net/url#QueryEscape) request URL.| ### `errorRequestHeaders` Defines the list of original request headers forwarded to the error page service. By default (`errorRequestHeaders` not set), all request headers — including authentication material such as `Authorization` and `C... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/errorpages.md | master | traefik | [
-0.0700441375374794,
0.12809240818023682,
-0.02345086820423603,
-0.040106721222400665,
-0.0016887483652681112,
-0.015533710829913616,
0.020135411992669106,
-0.008760178461670876,
-0.001995069906115532,
0.01036827638745308,
-0.02684108354151249,
-0.014391355216503143,
0.05559160187840462,
0... | -0.041616 |
The `passTLSClientCert` middleware adds the selected data from the passed client TLS certificate to a header. ## Configuration Examples Pass the pem in the `X-Forwarded-Tls-Client-Cert` header: ```yaml tab="Structured (YAML)" # Pass the pem in the `X-Forwarded-Tls-Client-Cert` header. http: middlewares: test-passtlscli... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/passtlsclientcert.md | master | traefik | [
-0.0664694756269455,
0.09165755659341812,
-0.015781428664922714,
-0.03157361224293709,
0.04343397542834282,
-0.08831025660037994,
0.015449794009327888,
0.013726240023970604,
0.030389996245503426,
-0.03182833641767502,
0.0003015061083715409,
-0.07861294597387314,
0.12150289863348007,
0.0481... | -0.02646 |
the `Not Before` information from the `Validity` part. More information about `info` [here](#info). | false | No | | [`info.sans`](#opt-info-sans "#opt-info-sans") | Add the `Subject Alternative Name` information from the `Subject Alternative Name` part. More information about `info` [here](#info). | false | No | | [`i... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/passtlsclientcert.md | master | traefik | [
0.03724969923496246,
0.13707755506038666,
-0.01828186959028244,
-0.02879338711500168,
0.08338060975074768,
-0.07862059772014618,
0.06793035566806793,
-0.022615402936935425,
0.03365546092391014,
-0.022957513108849525,
0.023974290117621422,
-0.05471096187829971,
0.111367367208004,
0.03386186... | -0.028489 |
false | No | | [`info.issuer.domainComponent`](#opt-info-issuer-domainComponent "#opt-info-issuer-domainComponent") | Add the `domainComponent` information into the issuer. The data is taken from the issuer part with the `DC` key. More information about `info` [here](#info). | false | No | ### pem #### Data Format The ... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/passtlsclientcert.md | master | traefik | [
0.027462569996714592,
0.10440008342266083,
-0.026494966819882393,
-0.01650778390467167,
0.04212801530957222,
-0.10002870857715607,
-0.04007233306765556,
0.0011786514660343528,
0.0014070556499063969,
-0.01671500690281391,
0.02727530524134636,
-0.035871896892786026,
0.07190956175327301,
0.01... | -0.103957 |
The Headers middleware manages the headers of requests and responses. By default, the following headers are automatically added when proxying requests: | Property | HTTP Header | |---------------------------|----------------------------| | [Client's IP](#opt-Clients-IP "#opt-Clients-IP") | `X-Forwarded-For`, `X-Real-Ip... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/headers.md | master | traefik | [
-0.07706000655889511,
0.03429678454995155,
0.01346920058131218,
-0.037583012133836746,
0.004152000416070223,
-0.08868356049060822,
0.03386993333697319,
0.022122424095869064,
-0.022379901260137558,
0.04423478618264198,
-0.052729133516550064,
0.02693653106689453,
0.04474686458706856,
0.00028... | 0.068291 |
accessControlAllowMethods: - "GET" - "OPTIONS" - "PUT" accessControlAllowHeaders: - "\*" accessControlAllowOriginList: - "https://foo.bar.org" - "https://example.org" accessControlMaxAge: 100 addVaryHeader: true ``` ## Configuration Options !!! warning Custom headers will overwrite existing headers if they have identic... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/headers.md | master | traefik | [
-0.05902548506855965,
0.09857843816280365,
-0.09123729914426804,
0.06126847490668297,
0.003959137015044689,
0.005384392570704222,
0.03984936326742172,
-0.034300919622182846,
0.008025580085814,
-0.007538412231951952,
-0.028584539890289307,
-0.0643162727355957,
0.08192512392997742,
-0.039583... | -0.041653 |
"#opt-publicKey") | Implements HPKP for certificate pinning. | "" | No | | [`referrerPolicy`](#opt-referrerPolicy "#opt-referrerPolicy") | Controls forwarding of `Referer` header. | "" | No | | [`permissionsPolicy`](#opt-permissionsPolicy "#opt-permissionsPolicy") | allows sites to control browser features. | "" | No |... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/headers.md | master | traefik | [
-0.048716068267822266,
0.05240056291222572,
-0.09656061977148056,
-0.007841665297746658,
0.009340515360236168,
-0.07261717319488525,
0.04674553498625755,
-0.0216009933501482,
-0.03911847993731499,
-0.04600213095545769,
0.09202853590250015,
-0.011068007908761501,
0.030472908169031143,
0.061... | 0.062748 |
!!! info "Traefik Hub Feature" This middleware is available exclusively in [Traefik Hub](https://traefik.io/traefik-hub/). Learn more about [Traefik Hub's advanced features](https://doc.traefik.io/traefik-hub/api-gateway/intro). Traefik Hub comes with an Open Policy Agent middleware that allows you to restrict access t... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/opa.md | master | traefik | [
-0.11499122530221939,
0.04647383466362953,
-0.0785980075597763,
-0.037981387227773666,
0.03302093967795372,
-0.1666123867034912,
0.0022674144711345434,
0.02026834525167942,
0.009231806732714176,
0.0012173334835097194,
-0.013379924930632114,
0.011058472096920013,
-0.0019021789776161313,
-0.... | 0.219695 |
!!! info "Traefik Hub Feature" This middleware is available exclusively in [Traefik Hub](https://traefik.io/traefik-hub/). Learn more about [Traefik Hub's advanced features](https://doc.traefik.io/traefik-hub/api-gateway/intro). This middleware validates a digital signature computed using the content of an HTTP request... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/hmac.md | master | traefik | [
-0.13743425905704498,
0.07210545986890793,
-0.05745973438024521,
-0.05121398717164993,
0.009271588176488876,
-0.1457519680261612,
0.05690927430987358,
-0.00003737043516593985,
0.03895695507526398,
-0.007407324388623238,
-0.008381552062928677,
0.00548931397497654,
0.02204178087413311,
-0.05... | 0.204466 |
their clocks synchronized. ### Computing the Signature The signature is the base64-encoded value of the result of an HMAC signature algorithm computed with a `signature string` and the sender's `secret key`. For example: ```bash signature=base64(HMAC(signatureString, secret)) ``` ### Crafting the Signature String A sig... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/hmac.md | master | traefik | [
-0.06574542075395584,
0.07785578817129135,
0.04945388808846474,
-0.08580145984888077,
0.018230926245450974,
-0.0862644612789154,
0.009731775149703026,
0.003570588305592537,
0.02688458561897278,
-0.0003332066989969462,
-0.06632126122713089,
-0.008016366511583328,
0.08921484649181366,
0.0164... | 0.035659 |
their value is not modified during transport, it is \*\*highly recommended\*\* to always include those parameters values in the signature using the `(created)` and `(expired)` special headers value. To do so, it is recommended to \*\*always\*\* configure the middleware to enforce `(created)` and `(expires)`. ### Initia... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/hmac.md | master | traefik | [
-0.03514689952135086,
0.08321990072727203,
-0.032448943704366684,
-0.0607510581612587,
-0.00992816872894764,
-0.07750220596790314,
0.07200123369693756,
-0.012060662731528282,
0.035491812974214554,
0.01659846305847168,
0.0021313296165317297,
-0.008112558163702488,
0.10122601687908173,
0.034... | 0.001562 |
The `grpcWeb` middleware converts gRPC Web requests to HTTP/2 gRPC requests before forwarding them to the backends. !!! tip Please note, that Traefik needs to communicate using gRPC with the backends (h2c or HTTP/2 over TLS). Check out [Exposing gRPC Services](../../../../expose/overview.md#exposing-grpc-services) for ... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/grpcweb.md | master | traefik | [
-0.06983485817909241,
-0.008339309133589268,
-0.08693240582942963,
-0.04359649494290352,
0.0014031501486897469,
-0.15605829656124115,
0.02354227937757969,
-0.044632989913225174,
0.0008744769147597253,
0.006390240043401718,
0.020493876188993454,
-0.04740140959620476,
-0.047877680510282516,
... | 0.075625 |
The `RedirectScheme` middleware redirects the request if the request scheme is different from the configured scheme. !!! warning "When behind another reverse-proxy" When there is at least one other reverse-proxy between the client and Traefik, the other reverse-proxy (i.e. the last hop) needs to be a [trusted](../../..... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/redirectscheme.md | master | traefik | [
-0.052323780953884125,
0.04021381214261055,
-0.026427438482642174,
-0.059320688247680664,
0.017951445654034615,
-0.17416442930698395,
0.0489736869931221,
-0.0024498137645423412,
-0.018289046362042427,
0.019853755831718445,
-0.011355332098901272,
-0.018276918679475784,
-0.00006346828740788624... | 0.09344 |
The `addPrefix` middleware updates the path of a request before forwarding it. ## Configuration Examples ```yaml tab="Structured (YAML)" # Prefixing with /foo http: middlewares: add-foo: addPrefix: prefix: "/foo" ``` ```toml tab="Structured (TOML)" # Prefixing with /foo [http.middlewares] [http.middlewares.add-foo.addP... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/addprefix.md | master | traefik | [
-0.074567511677742,
-0.0354122519493103,
0.018155712634325027,
-0.06107281520962715,
-0.015619010664522648,
-0.07965725660324097,
-0.052022844552993774,
-0.01359756849706173,
0.0392773263156414,
0.03930240496993065,
0.02397787570953369,
-0.01460360735654831,
-0.023230932652950287,
-0.01438... | 0.092325 |
!!! info "Traefik Hub Feature" This middleware is available exclusively in [Traefik Hub](https://traefik.io/traefik-hub/). Learn more about [Traefik Hub's advanced features](https://doc.traefik.io/traefik-hub/api-gateway/intro). The LDAP Authentication middleware secures your applications by delegating the authenticati... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/ldap.md | master | traefik | [
-0.060615744441747665,
0.0009900253498926759,
-0.11121867597103119,
-0.04580007120966911,
-0.0008787779952399433,
-0.10838459432125092,
0.024134565144777298,
0.042095109820365906,
-0.016528775915503502,
0.02390042133629322,
-0.0007802753825671971,
-0.04681769385933876,
0.004699446260929108,
... | 0.122994 |
option is set to `false`. | Username | Yes | | [`forwardAuthorization`](#opt-forwardAuthorization "#opt-forwardAuthorization") | Enable to forward the authorization header from the request after it has been approved by the middleware. | false | Yes | | [`searchFilter`](#opt-searchFilter "#opt-searchFilter") | If not em... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/ldap.md | master | traefik | [
-0.0555083341896534,
0.09938620775938034,
-0.051984041929244995,
0.002207183511927724,
0.013536700047552586,
-0.03506939113140106,
0.020047908648848534,
0.00857162568718195,
-0.028990207239985466,
0.012348424643278122,
-0.012160619720816612,
-0.04488252103328705,
0.116058349609375,
-0.0128... | 0.047757 |
The `stripPrefixRegex` middleware strips the matching path prefix and stores it in an `X-Forwarded-Prefix` header. !!! tip Use a `stripPrefixRegex` middleware if your backend listens on the root path (`/`) but should be exposed on a specific prefix. ## Configuration Example ```yaml tab="Structured (YAML)" http: middlew... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/stripprefixregex.md | master | traefik | [
-0.034771792590618134,
0.03746961057186127,
0.03538990393280983,
-0.07798201590776443,
0.01778111234307289,
-0.05541545897722244,
-0.01952003873884678,
-0.030079858377575874,
0.0058510624803602695,
-0.02680368535220623,
0.0018589585088193417,
0.021782223135232925,
0.016818566247820854,
0.0... | -0.018044 |
!!! info "Traefik Hub Feature" This middleware is available exclusively in [Traefik Hub](https://traefik.io/traefik-hub/). Learn more about [Traefik Hub's advanced features](https://doc.traefik.io/traefik-hub/api-gateway/intro). The [Coraza WAF](https://coraza.io/) middleware in Traefik Hub API Gateway provides web app... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/waf.md | master | traefik | [
-0.0298981461673975,
0.01763065531849861,
-0.1023847758769989,
-0.01644427701830864,
0.016879400238394737,
-0.12165148556232452,
-0.013455118052661419,
0.04827006906270981,
-0.041729673743247986,
0.02580920420587063,
-0.021671250462532043,
0.004279253073036671,
0.0013364674523472786,
-0.07... | 0.263776 |
!!! info "Traefik Hub Feature" This middleware is available exclusively in [Traefik Hub](https://traefik.io/traefik-hub/). Learn more about [Traefik Hub's advanced features](https://doc.traefik.io/traefik-hub/api-gateway/intro). The OIDC Authentication middleware secures your applications by delegating the authenticati... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/oidc.md | master | traefik | [
-0.07645346224308014,
0.023073997348546982,
-0.10154294222593307,
-0.02909613773226738,
0.05226004868745804,
-0.13068486750125885,
0.019708946347236633,
0.029394233599305153,
0.03014225885272026,
0.019915055483579636,
0.0028208706062287092,
-0.024581341072916985,
-0.02528548613190651,
-0.0... | 0.186462 |
that fail. | 3 | No | | [`pkce`](#opt-pkce "#opt-pkce") | Defines the Proof Key for Code Exchange as described in [RFC 7636](https://datatracker.ietf.org/doc/html/rfc7636). | false | No | | [`discoveryParams`](#opt-discoveryParams "#opt-discoveryParams") | A map of arbitrary query parameters to be added to the openid-c... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/oidc.md | master | traefik | [
-0.041879501193761826,
0.05448533222079277,
-0.0754513293504715,
0.029969647526741028,
0.02475808374583721,
-0.07581602036952972,
0.06613057851791382,
0.013773628510534763,
-0.002333998680114746,
0.013974270783364773,
0.020937073975801468,
-0.0850859060883522,
0.07562867552042007,
-0.00471... | -0.04823 |
example, if `stateCookie.path` is set to `/docs`, these paths will match: `/docs`,`/docs/web/`,`/docs/web/http`.| "/" | No | | [`stateCookie.domain`](#opt-stateCookie-domain "#opt-stateCookie-domain") | Defines the hosts that are allowed to receive the cookie. If specified, then subdomains are always included. For exam... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/oidc.md | master | traefik | [
-0.07583428174257278,
0.007729186676442623,
-0.022811254486441612,
-0.031155813485383987,
0.00951174646615982,
-0.14195749163627625,
0.010217173956334591,
-0.0405903197824955,
-0.024658944457769394,
-0.02781032584607601,
-0.010503727942705154,
-0.01779947429895401,
0.01017951499670744,
0.0... | 0.011262 |
"" | No | | [`session.store.redis.cluster`](#opt-session-store-redis-cluster "#opt-session-store-redis-cluster") | Enable Redis Cluster | "" | No | | [`session.store.redis.tls.caBundle`](#opt-session-store-redis-tls-caBundle "#opt-session-store-redis-tls-caBundle") | Custom CA bundle | "" | No | | [`session.store.redis... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/oidc.md | master | traefik | [
-0.050933655351400375,
0.0610816515982151,
-0.10569285601377487,
-0.003628890495747328,
-0.025387169793248177,
-0.04220850020647049,
0.06804663687944412,
0.012929068878293037,
0.003356790170073509,
0.008313076570630074,
0.052168842405080795,
-0.06430763751268387,
0.07282982021570206,
0.055... | 0.016736 |
secret values in Kubernetes secrets When configuring the `clientID` and the `clientSecret`, it is possible to reference Kubernetes secrets defined in the same namespace as the Middleware. The reference to a Kubernetes secret takes the form of a URN: ```text urn:k8s:secret:[name]:[valueKey] ``` ### claims #### Syntax Th... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/oidc.md | master | traefik | [
-0.1411735862493515,
0.04118373617529869,
0.04400916397571564,
-0.03848933055996895,
-0.04418658837676048,
-0.008684801869094372,
0.05508065223693848,
0.020409656688570976,
0.08812493830919266,
0.027837686240673065,
-0.0077294823713600636,
-0.05837514251470566,
0.05879848822951317,
-0.0029... | 0.103431 |
the same namespace as the Middleware. The reference to a Kubernetes secret takes the form of a URN: ```text urn:k8s:secret:[name]:[valueKey] ``` ```yaml tab="Middleware JWT" apiVersion: traefik.io/v1alpha1 kind: Middleware metadata: name: test-oidc spec: plugin: oidc: clientConfig: tls: ca: "urn:k8s:secret:tls:ca" cert... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/oidc.md | master | traefik | [
-0.10594792664051056,
-0.007735231425613165,
0.0030627879314124584,
-0.05801071599125862,
0.010469885542988777,
-0.0564311221241951,
-0.0003046361671295017,
-0.0021598951425403357,
0.14988499879837036,
0.009697461500763893,
-0.0038668594788759947,
-0.06606625765562057,
-0.005045603029429913,... | 0.188318 |
The `RedirectRegex` redirects a request using regex matching and replacement. ## Configuration Examples ```yaml tab="Structured (YAML)" # Redirect with domain replacement http: middlewares: test-redirectregex: redirectRegex: regex: "^http://localhost/(.\*)" replacement: "http://mydomain/${1}" ``` ```toml tab="Structure... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/redirectregex.md | master | traefik | [
-0.0382726714015007,
0.0013876046286895871,
0.07234107702970505,
-0.0698830783367157,
0.015082938596606255,
-0.07227002829313278,
-0.00808674842119217,
-0.060255225747823715,
0.017085297033190727,
0.025872640311717987,
-0.038559965789318085,
-0.042841967195272446,
0.006272455677390099,
0.0... | 0.024421 |
`ipAllowList` accepts / refuses requests based on the client IP. ## Configuration Example ```yaml tab="Structured (YAML)" # Accepts request from defined IP http: middlewares: test-ipallowlist: ipAllowList: sourceRange: - "127.0.0.1/32" - "192.168.1.7" ``` ```toml tab="Structured (TOML)" # Accepts request from defined I... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/ipallowlist.md | master | traefik | [
-0.08361180871725082,
0.0349024198949337,
-0.04916922748088837,
-0.07957088947296143,
-0.034065309911966324,
-0.12850847840309143,
-0.007148089352995157,
-0.08051997423171997,
-0.0007183904526755214,
-0.007482246030122042,
0.03065713495016098,
-0.036515142768621445,
-0.019547687843441963,
... | 0.040279 |
`80` | `"::abcd:0:0:0:0"` | | [`"::abcd:1111:2222:3333"`](#opt-abcd111122223333-3 "#opt-abcd111122223333-3") | `96` | `"::abcd:1111:0:0:0"` | ### Example of Depth & `X-Forwarded-For` If `depth` is set to 2, and the request `X-Forwarded-For` header is `"10.0.0.1,11.0.0.1,12.0.0.1,13.0.0.1"` then the "real" client IP is ... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/ipallowlist.md | master | traefik | [
-0.03052603080868721,
0.06146290525794029,
-0.01873827911913395,
-0.07507981359958649,
-0.006026044487953186,
-0.06791336834430695,
0.029525870457291603,
0.012746211141347885,
-0.006060665939003229,
0.004247594159096479,
0.0048863450065255165,
-0.06227102130651474,
0.06357457488775253,
-0.... | -0.006012 |
The HTTP circuit breaker prevents stacking requests to unhealthy Services, resulting in cascading failures. When your system is healthy, the circuit is closed (normal operations). When your system becomes unhealthy, the circuit opens, and the requests are no longer forwarded, but instead are handled by a fallback mecha... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/circuitbreaker.md | master | traefik | [
-0.07564553618431091,
-0.023429278284311295,
0.06375961005687714,
-0.005150030367076397,
0.01351642794907093,
-0.07061268389225006,
-0.04822152853012085,
0.00306408922187984,
0.04290344938635826,
0.06114211305975914,
-0.05319978669285774,
0.03728903830051422,
0.03668791055679321,
0.0300752... | 0.101852 |
is inclusive, `to` is exclusive. #### Using Multiple Metrics You can combine multiple metrics using operators in your `expression`. Supported operators are: - AND (`&&`) - OR (`||`) For example, `ResponseCodeRatio(500, 600, 0, 600) > 0.30 || NetworkErrorRatio() > 0.10` triggers the circuit breaker when 30% of the reque... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/circuitbreaker.md | master | traefik | [
-0.0875738263130188,
0.04130023717880249,
0.0011426942655816674,
-0.0016974031459540129,
-0.04093684256076813,
-0.029747823253273964,
-0.02062138356268406,
0.06330205500125885,
-0.03056425228714943,
0.04638637974858284,
0.0023944529239088297,
-0.07253585755825043,
0.10256768763065338,
0.02... | 0.071439 |
!!! info "Traefik Hub Feature" This middleware is available exclusively in [Traefik Hub](https://traefik.io/traefik-hub/). Learn more about [Traefik Hub's advanced features](https://doc.traefik.io/traefik-hub/api-gateway/intro). OAuth 2.0 Token Introspection allows Traefik Hub to retrieve metadata about an access token... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/oauth2-token-introspection.md | master | traefik | [
-0.05021121725440025,
0.05011569336056709,
-0.07773931324481964,
-0.07121596485376358,
0.06591811031103134,
-0.14873027801513672,
0.015327246859669685,
0.051106393337249756,
0.027380624786019325,
-0.014088976196944714,
-0.02489110641181469,
-0.004092326853424311,
0.007213343400508165,
-0.0... | 0.20764 |
using `Authorization` as header name. Check out the `Authorization` header [documentation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization#syntax). At least one `tokenSource`option must be set. | "" | No | | [`tokenSource.query`](#opt-tokenSource-query "#opt-tokenSource-query") | Defines the que... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/oauth2-token-introspection.md | master | traefik | [
-0.08575917035341263,
0.08595190197229385,
-0.08067268878221512,
0.06053704768419266,
-0.02589448355138302,
-0.06517065316438675,
0.09366267174482346,
0.030811380594968796,
-0.007050595246255398,
-0.050627414137125015,
-0.08083843439817429,
-0.026923710480332375,
0.09283094853162766,
0.034... | -0.007759 |
MIIB9TCCAWACAQAwgbgxGTAXBgNVBAoMEFF1b1ZhZGlzIExpbWl0ZWQxHDAaBgNV BAsME0RvY3VtZW50IERlcGFydG1lbnQxOTA3BgNVBAMMMFdoeSBhcmUgeW91IGRl Y29kaW5nIG1lPyAgVGhpcyBpcyBvbmx5IGEgdGVzdCEhITERMA8GA1UEBwwISGFt aWx0b24xETAPBgNVBAgMCFBlbWJyb2tlMQswCQYDVQQGEwJCTTEPMA0GCSqGSIb3 DQEJARYAMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCJ9WRanG/fUvcf... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/oauth2-token-introspection.md | master | traefik | [
0.026748817414045334,
-0.02883101999759674,
0.05272548645734787,
-0.0614485964179039,
0.060888588428497314,
-0.02116398699581623,
0.06102202087640762,
-0.06223523989319801,
-0.007053504232317209,
0.032823219895362854,
0.06066375598311424,
-0.08504866063594818,
0.05726445093750954,
0.001033... | -0.095214 |
The `rateLimit` middleware ensures that services will receive a \*fair\* amount of requests, and allows you to define what fair is. It is based on a [token bucket](https://en.wikipedia.org/wiki/Token\_bucket) implementation. In this analogy, the `average` and `period` parameters define the \*\*rate\*\* at which the buc... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/ratelimit.md | master | traefik | [
-0.08171234279870987,
-0.04550463333725929,
-0.03734931722283363,
-0.013603540137410164,
0.005677198059856892,
-0.10030549019575119,
-0.03298342600464821,
0.018553661182522774,
0.05908985808491707,
0.03185657411813736,
0.009277060627937317,
-0.008112224750220776,
0.03195737302303314,
-0.03... | 0.165283 |
| No | | [`period`](#opt-period "#opt-period") | Period of time used to define the rate. More information [here](#rate-and-burst). | 1s | No | | [`burst`](#opt-burst "#opt-burst") | Maximum number of requests allowed to go through at the very same moment. More information [here](#rate-and-burst).| 1 | No | | [`sourceCr... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/ratelimit.md | master | traefik | [
-0.026428690180182457,
0.036037981510162354,
-0.09887395799160004,
0.018259776756167412,
0.043161869049072266,
-0.10486489534378052,
0.012049529701471329,
-0.025633392855525017,
0.00036001179250888526,
0.042110979557037354,
0.017411507666110992,
-0.03378666564822197,
0.049542076885700226,
... | 0.04719 |
new connections. Zero means no timeout. | 5s | No | | [`redis.tls.ca`](#opt-redis-tls-ca "#opt-redis-tls-ca") | Path to the certificate authority used for the secure connection to Redis, it defaults to the system bundle. | "" | No | | [`redis.tls.cert`](#opt-redis-tls-cert "#opt-redis-tls-cert") | Path to the public ce... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/ratelimit.md | master | traefik | [
-0.04671015217900276,
0.011261160485446453,
-0.11088588088750839,
0.012916689738631248,
-0.01787053979933262,
-0.06709049642086029,
0.026994280517101288,
0.005565359722822905,
0.03232424333691597,
-0.013375305570662022,
0.05451955273747444,
-0.024783052504062653,
0.07649895548820496,
0.039... | -0.001874 |
distinct source: | `X-Forwarded-For` | excludedIPs | clientIP | |--------------------------------|-----------------------|--------------| | [`"10.0.0.1,11.0.0.1,12.0.0.1"`](#opt-10-0-0-111-0-0-112-0-0-1 "#opt-10-0-0-111-0-0-112-0-0-1") | `"11.0.0.1,12.0.0.1"` | `"10.0.0.1"` | | [`"10.0.0.2,11.0.0.1,12.0.0.1"`](#opt-10-... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/ratelimit.md | master | traefik | [
-0.011050552129745483,
0.021881723776459694,
-0.06427759677171707,
-0.03145592659711838,
-0.011229314841330051,
-0.041531626135110855,
0.09153147786855698,
-0.053903933614492416,
0.02357662096619606,
-0.024981291964650154,
0.045869726687669754,
0.01180296204984188,
0.07860216498374939,
-0.... | 0.01531 |
The `chain` middleware enables you to define reusable combinations of other pieces of middleware. It makes it effortless to reuse the same groups. ## Configuration Example Below is an example of a Chain containing `AllowList`, `BasicAuth`, and `RedirectScheme`. ```yaml tab="Structured (YAML)" # ... http: routers: route... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/chain.md | master | traefik | [
-0.09023520350456238,
0.00573925394564867,
0.00630100117996335,
-0.0328676775097847,
0.07912195473909378,
-0.0627334788441658,
-0.01888376474380493,
-0.061350017786026,
0.003835903014987707,
-0.0025471511762589216,
-0.0021362726110965014,
0.031083662062883377,
0.06333285570144653,
0.021425... | 0.092113 |
!!! info "Traefik Hub Feature" This middleware is available exclusively in [Traefik Hub](https://traefik.io/traefik-hub/). Learn more about [Traefik Hub's advanced features](https://doc.traefik.io/traefik-hub/api-gateway/intro). The OAuth 2.0 Client Credentials Authentication middleware allows Traefik Hub to secure rou... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/oauth2-client-credentials.md | master | traefik | [
-0.07904873788356781,
0.026359746232628822,
-0.08538440614938736,
-0.029771871864795685,
0.02189646102488041,
-0.11649654805660248,
0.0038840153720229864,
0.046422772109508514,
0.046129126101732254,
0.011782966554164886,
-0.039929114282131195,
0.02716187573969364,
0.005936384201049805,
-0.... | 0.221322 |
of the Redis instances to connect to (example: `redis.traefik-hub.svc.cluster.local:6379`) | "" | Yes | | [`store.redis.username`](#opt-store-redis-username "#opt-store-redis-username") | The username Traefik Hub will use to connect to Redis | "" | No | | [`store.redis.password`](#opt-store-redis-password "#opt-store-r... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/oauth2-client-credentials.md | master | traefik | [
0.006640241015702486,
-0.056242119520902634,
-0.20071953535079956,
0.0368957482278347,
-0.02176750637590885,
-0.05087319761514664,
0.05852508917450905,
0.017573470249772072,
0.0035996425431221724,
0.018017582595348358,
0.021687015891075134,
-0.012283526360988617,
0.08062807470560074,
-0.06... | 0.099679 |
"scope": "reader writer deploy", "referrer": "http://example.com/foo/bar", "areas": [ "office", "home" ], "user" { "name": "John Snow", "status": "undead" } } ``` ```bash tab="Result" John Snow ``` !!! note "Handling keys that contain a '.'" If the `key` contains a dot, the dot can be escaped using `\.` !!! note "Handl... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/oauth2-client-credentials.md | master | traefik | [
-0.04587162286043167,
0.03842216730117798,
0.018195735290646553,
-0.04226231947541237,
-0.045428529381752014,
-0.013915716670453548,
0.0603058785200119,
0.011236636899411678,
0.1268797516822815,
0.012292725965380669,
-0.026527710258960724,
-0.08307972550392151,
0.08625533431768417,
-0.0210... | 0.092879 |
The `inFlightReq` middleware proactively prevents services from being overwhelmed with high load. ## Configuration Examples ```yaml tab="Structured (YAML)" # Limiting to 10 simultaneous connections http: middlewares: test-inflightreq: inFlightReq: amount: 10 ``` ```toml tab="Structured (TOML)" # Limiting to 10 simultan... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/inflightreq.md | master | traefik | [
-0.04078615829348564,
-0.01141571905463934,
-0.07537252455949783,
-0.060271602123975754,
-0.03863834962248802,
-0.1421726793050766,
0.002543220529332757,
-0.006351992953568697,
0.025585751980543137,
0.113125279545784,
-0.012731611728668213,
0.02019173465669155,
-0.028154786676168442,
0.008... | 0.127474 |
"#opt-abcd111122223333-2") | `80` | `"::abcd:0:0:0:0"` | | [`"::abcd:1111:2222:3333"`](#opt-abcd111122223333-3 "#opt-abcd111122223333-3") | `96` | `"::abcd:1111:0:0:0"` | ### Example of Depth & `X-Forwarded-For` If `depth` is set to 2, and the request `X-Forwarded-For` header is `"10.0.0.1,11.0.0.1,12.0.0.1,13.0.0.1"` ... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/inflightreq.md | master | traefik | [
-0.03929558023810387,
0.03669301047921181,
-0.0023526272270828485,
-0.08576435595750809,
0.01412869431078434,
-0.06469951570034027,
0.024084392935037613,
0.009736883454024792,
-0.0046991570852696896,
0.0013739188434556127,
0.011210542172193527,
-0.06539059430360794,
0.04986533150076866,
-0... | -0.004946 |
The EncodedCharacters middleware controls which ambiguous reserved encoded characters are allowed in the request path. When you use this middleware, by default, potentially dangerous encoded characters are rejected for security enhancement. ## Configuration Examples ```yaml tab="Docker & Swarm" # Allow encoded slash in... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/encodedcharacters.md | master | traefik | [
-0.04381405562162399,
0.0066109634935855865,
-0.07382247596979141,
-0.06669136881828308,
-0.02970712073147297,
-0.07788673043251038,
-0.02626456506550312,
-0.0003606181708164513,
0.058251865208148956,
0.0628080740571022,
0.02766706421971321,
-0.08873902261257172,
-0.024783330038189888,
0.0... | 0.137715 |
The `contentType` middleware sets the `Content-Type` header value to the media type detected from the response content, when it is not set by the backend. !!! info The `contentType` middleware only applies when Traefik detects the MIME type. If any middleware (such as Headers or Compress) sets the `contentType` header ... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/middlewares/contenttype.md | master | traefik | [
-0.06417898833751678,
-0.009836752898991108,
0.01123202033340931,
-0.026612119749188423,
0.11660186201334,
-0.11055869609117508,
-0.004360498860478401,
0.009693613275885582,
0.022049520164728165,
0.00037938146851956844,
0.003949351608753204,
-0.011176332831382751,
-0.009437241591513157,
0.... | 0.127929 |
## General When an HTTP router is configured to handle HTTPS traffic, include a `tls` field in its definition. This field tells Traefik that the router should process only TLS requests and ignore non-TLS traffic. By default, an HTTP router with a TLS field will terminate the TLS connections, meaning that it will send d... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/tls/overview.md | master | traefik | [
-0.09245528280735016,
0.06131945550441742,
-0.05243125185370445,
-0.03243952989578247,
-0.036338504403829575,
-0.183693066239357,
-0.01446885522454977,
-0.06705065816640854,
0.08627041429281235,
-0.020883454009890556,
-0.006940071005374193,
0.0009000397985801101,
-0.016215916723012924,
0.0... | 0.003196 |
The TLS options allow one to configure some parameters of the TLS connection. !!! important "'default' TLS Option" The `default` option is special. When no tls options are specified in a tls router, the `default` option is used. When specifying the `default` option explicitly, make sure not to specify provider namespac... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/tls/tls-options.md | master | traefik | [
-0.0545477420091629,
0.08777429163455963,
-0.06514186412096024,
-0.02121621184051037,
-0.03269711136817932,
-0.07844818383455276,
0.0022278456017374992,
0.02255275286734104,
0.040968142449855804,
-0.02213377319276333,
0.01742185465991497,
-0.061900753527879715,
-0.02021464705467224,
0.0616... | -0.082929 |
"#opt-NoClientCert") | Disregards any client certificate.| | [`RequestClientCert`](#opt-RequestClientCert "#opt-RequestClientCert") | Asks for a certificate but proceeds anyway if none is provided. | | [`RequireAnyClientCert`](#opt-RequireAnyClientCert "#opt-RequireAnyClientCert") | Requires a certificate but does not ... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/tls/tls-options.md | master | traefik | [
-0.07204674184322357,
0.11041191965341568,
0.011165928095579147,
0.010204597376286983,
0.055398304015398026,
-0.08111391961574554,
0.06586350500583649,
-0.006196215748786926,
0.03037372976541519,
-0.04606057330965996,
0.03508057817816734,
-0.11043768376111984,
0.11602486670017242,
0.078675... | -0.04403 |
!!! info When a router has to handle HTTPS traffic, it should be specified with a `tls` field of the router definition. ## Certificates Definition ### Automated See the [Let's Encrypt](../../../install-configuration/tls/certificate-resolvers/acme.md) page. ### User defined To add / remove TLS certificates, even when Tr... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/tls/tls-certificates.md | master | traefik | [
-0.07967658340930939,
0.0645112469792366,
-0.09619369357824326,
0.02429165318608284,
-0.02352670021355152,
-0.15446119010448456,
-0.019041690975427628,
0.007491990923881531,
-0.01388577837496996,
-0.04062822833657265,
0.012723187915980816,
-0.02372891455888748,
-0.011025737039744854,
0.025... | -0.005919 |
(TOML)" [tls.stores] [tls.stores.default.defaultGeneratedCert] resolver = "myresolver" [tls.stores.default.defaultGeneratedCert.domain] main = "example.org" sans = ["foo.example.org", "bar.example.org"] ``` ```yaml tab="Labels" labels: - "traefik.tls.stores.default.defaultgeneratedcert.resolver=myresolver" - "traefik.t... | https://github.com/traefik/traefik/blob/master/docs/content/reference/routing-configuration/http/tls/tls-certificates.md | master | traefik | [
-0.07110577821731567,
0.03683978319168091,
-0.04064954072237015,
-0.06050674617290497,
-0.05371226742863655,
-0.1371278464794159,
-0.018812809139490128,
-0.06100061535835266,
0.07153134793043137,
-0.0038477445486932993,
0.05293192341923714,
-0.05512741208076477,
0.010796020738780499,
0.003... | -0.024513 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.