Document keepalive_timeout (was missed somehow)

This commit is contained in:
Francis Lavoie 2024-05-09 01:10:10 -04:00
parent a94fa2fee0
commit 9b60292fc6
No known key found for this signature in database
GPG key ID: 656DB341634BFCE1

View file

@ -118,6 +118,7 @@ Possible options are (click on each option to jump to its documentation):
write <duration>
idle <duration>
}
keepalive_interval <duration>
trusted_proxies <module> ...
client_ip_headers <headers...>
metrics
@ -823,6 +824,20 @@ Also included is the [`proxy_protocol`](/docs/json/apps/http/servers/listener_wr
```
##### `keepalive_interval`
The interval at which TCP keepalive packets are sent to keep the connection alive at the TCP layer when no other data is being transmitted. Defaults to `15s`.
```caddy
{
servers {
keepalive_interval 30s
}
}
```
##### `trusted_proxies`
Allows configuring IP ranges (CIDRs) of proxy servers from which requests should be trusted. By default, no proxies are trusted.