docs: dial_timeout for log net writer

And minor fix for reverse proxy example
This commit is contained in:
Matthew Holt 2021-05-25 17:25:25 -06:00
parent 64990cf8c4
commit 09c3a73299
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5
2 changed files with 6 additions and 3 deletions

View file

@ -72,13 +72,16 @@ output file <filename> {
#### net
A network socket.
A network socket. If the socket goes down, it will dump logs to stderr while it attempts to reconnect.
```caddy-d
output net <address>
output net <address> {
dial_timeout <duration>
}
```
- **&lt;address&gt;** is the [address](/docs/conventions#network-addresses) to write logs to.
- **&lt;dial_timeout&gt;** is how long to wait for a successful connection to the log socket. Log emissions may be blocked for up to this long if the socket goes down.

View file

@ -358,7 +358,7 @@ reverse_proxy localhost:8080 {
Custom error page for errors from upstream:
```
```caddy-d
reverse_proxy localhost:8080 {
@error status 500 503
handle_response @error {