Add flush_interval to reverse_proxy

Matt Holt 2019-11-22 15:49:21 -07:00
parent a46cd3ad82
commit 8a09d95217

@ -771,7 +771,6 @@ transport http {
keepalive_idle_conns <max_count>
}
```
When defining a `tls` directive in the scope of a `transport` object nested inside a `reverse_proxy` object, make sure the upstreams are configured for HTTPS traffic or else you will get a `TLS handshake` error.
FastCGI transport options:
@ -792,7 +791,6 @@ Issue an HTTP redirect.
```
redir [<matcher>] to [<code>|permanent|temporary]
```
May cause infinite redirection loops (`Secure Connection Failed`) so be wary of carelessly defining `redir` directives
##### rewrite
@ -1426,7 +1424,7 @@ Matches requests by request headers.
}
```
The object keys should be header field names, with the values to match in an array. If the values array is present but empty, it will accept any value and match merely on the presence of the header field.
The object keys should be header field names, with the values to match in an array. If the values array is present but empty, it will accept any value and match merely on the presence of the header field. This matcher supports wildcards at the beginning and end of values: `*foo` matches all values ending with "foo", `foo*` matches values starting with "foo", and `*foo*` matches all values that contain "foo". These common wildcard matches are much faster than their regular expression equivalents.
##### http.matchers.header_regexp
@ -1875,6 +1873,7 @@ A highly flexible and configurable multi-host reverse proxy with load balancing,
"transport": {
"protocol": "http"
},
"flush_interval": 0,
"circuit_breaker": {},
"load_balancing": {
"selection_policy": {
@ -1920,6 +1919,7 @@ A highly flexible and configurable multi-host reverse proxy with load balancing,
```
- `transport`: The module for round-tripping requests. See below for options.
- `flush_interval`: How frequently to flush buffered responses to the client. Accepts any duration value. Set to -1 to always flush immediately.
- `circuit_breaker`: The module for short-circuiting before backends become unhealthy.
- `load_balancing`: Configures load balancing among a group of hosts.
- `load_balancing.selection_policy`: The module to use for selecting a host from a pool. See below for options.