mirror of
https://github.com/caddyserver/website.git
synced 2025-04-22 04:56:17 -04:00
docs: dial_timeout for log net writer
And minor fix for reverse proxy example
This commit is contained in:
parent
64990cf8c4
commit
09c3a73299
2 changed files with 6 additions and 3 deletions
|
@ -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>
|
||||
}
|
||||
```
|
||||
|
||||
- **<address>** is the [address](/docs/conventions#network-addresses) to write logs to.
|
||||
- **<dial_timeout>** 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.
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue