mirror of
https://github.com/caddyserver/website.git
synced 2025-05-06 11:47:12 -04:00
Apply suggestions from code review
Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
This commit is contained in:
parent
27f14b64dc
commit
f33e0a5f58
1 changed files with 3 additions and 2 deletions
|
@ -140,7 +140,7 @@ Defines the issuer (or source) of TLS certificates.
|
||||||
|
|
||||||
## Server Options
|
## Server Options
|
||||||
|
|
||||||
Allows configuring options of the [HTTP servers](/docs/json/apps/http/servers/) that can't otherwise be provided in site blocks.
|
Customizes [HTTP servers](/docs/json/apps/http/servers/) with settings that potentially span multiple sites and thus can't be rightly configured in site blocks. These options affect the listener/socket, or other behavior beneath the HTTP layer.
|
||||||
|
|
||||||
Can be specified more than once, with different `listener_address` values, to configure different options per server. For example, `servers :443` will only apply to the server that is bound to the listener address `:443`. Omitting the listener address will apply the options to any remaining server.
|
Can be specified more than once, with different `listener_address` values, to configure different options per server. For example, `servers :443` will only apply to the server that is bound to the listener address `:443`. Omitting the listener address will apply the options to any remaining server.
|
||||||
|
|
||||||
|
@ -195,6 +195,7 @@ listener_wrappers {
|
||||||
- **idle_timeout** is a [duration value](/docs/conventions#durations) that sets the maximum time to wait for the next request when keep-alives are enabled. Defaults to 5 minutes to help avoid resource exhaustion.
|
- **idle_timeout** is a [duration value](/docs/conventions#durations) that sets the maximum time to wait for the next request when keep-alives are enabled. Defaults to 5 minutes to help avoid resource exhaustion.
|
||||||
|
|
||||||
##### `max_header_size`
|
##### `max_header_size`
|
||||||
|
|
||||||
The maximum size to parse from a client's HTTP request headers. It accepts all formats supported by [go-humanize](https://github.com/dustin/go-humanize/blob/master/bytes.go).
|
The maximum size to parse from a client's HTTP request headers. It accepts all formats supported by [go-humanize](https://github.com/dustin/go-humanize/blob/master/bytes.go).
|
||||||
|
|
||||||
##### `protocol`
|
##### `protocol`
|
||||||
|
@ -203,4 +204,4 @@ The maximum size to parse from a client's HTTP request headers. It accepts all f
|
||||||
|
|
||||||
- **experimental_http3** enables experimental draft HTTP/3 support. Note that HTTP/3 is not a finished spec and client support is extremely limited. This option will go away in the future. _This option is not subject to compatibility promises._
|
- **experimental_http3** enables experimental draft HTTP/3 support. Note that HTTP/3 is not a finished spec and client support is extremely limited. This option will go away in the future. _This option is not subject to compatibility promises._
|
||||||
|
|
||||||
- **strict_sni_host** require that a request's `Host` header matches the value of the ServerName sent by the client's TLS ClientHello; often a necessary safeguard when using TLS client authentication.
|
- **strict_sni_host** require that a request's `Host` header matches the value of the ServerName sent by the client's TLS ClientHello; often a necessary safeguard when using TLS client authentication.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue