plugin/reload: reflow documentation (#3313)
* plugin/reload: reflow documentation For some reason these we're all bullets points, which made for awkward reading. Signed-off-by: Miek Gieben <miek@miek.nl> * typo Signed-off-by: Miek Gieben <miek@miek.nl> * Update plugin/reload/README.md Co-Authored-By: Michael Grosser <development@stp-ip.net>
This commit is contained in:
parent
8af4685587
commit
7328d3e8c9
2 changed files with 7 additions and 6 deletions
|
@ -38,11 +38,12 @@ This plugin can only be used once per Server Block.
|
|||
reload [INTERVAL] [JITTER]
|
||||
~~~
|
||||
|
||||
* The plugin will check for changes every **INTERVAL**, subject to +/- the **JITTER** duration
|
||||
* **INTERVAL** and **JITTER** are Golang (durations)[https://golang.org/pkg/time/#ParseDuration]
|
||||
* Default **INTERVAL** is 30s, default **JITTER** is 15s
|
||||
* Minimal value for **INTERVAL** is 2s, and for **JITTER** is 1s
|
||||
* If **JITTER** is more than half of **INTERVAL**, it will be set to half of **INTERVAL**
|
||||
The plugin will check for changes every **INTERVAL**, subject to +/- the **JITTER** duration.
|
||||
|
||||
* **INTERVAL** and **JITTER** are Golang (durations)[[https://golang.org/pkg/time/#ParseDuration](https://golang.org/pkg/time/#ParseDuration)].
|
||||
The default **INTERVAL** is 30s, default **JITTER** is 15s, the minimal value for **INTERVAL**
|
||||
is 2s, and for **JITTER** it is 1s. If **JITTER** is more than half of **INTERVAL**, it will be
|
||||
set to half of **INTERVAL**
|
||||
|
||||
## Examples
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package reload periodically checks if the Corefile has changed, and reloads if so.
|
||||
package reload
|
||||
|
||||
import (
|
||||
|
@ -11,7 +12,6 @@ import (
|
|||
"github.com/caddyserver/caddy/caddyfile"
|
||||
)
|
||||
|
||||
// reload periodically checks if the Corefile has changed, and reloads if so
|
||||
const (
|
||||
unused = 0
|
||||
maybeUsed = 1
|
||||
|
|
Loading…
Add table
Reference in a new issue