mirror of
https://github.com/caddyserver/website.git
synced 2025-04-22 13:06:16 -04:00
docs: Add stoage_clean_interval
global option (#158)
Docs for https://github.com/caddyserver/caddy/pull/4134
This commit is contained in:
parent
fb2a712dbe
commit
452537adea
1 changed files with 6 additions and 0 deletions
|
@ -28,6 +28,7 @@ Possible options are:
|
|||
storage <module_name> {
|
||||
<options...>
|
||||
}
|
||||
storage_clean_interval <duration>
|
||||
admin off|<addr> {
|
||||
origins <origins...>
|
||||
enforce_origin
|
||||
|
@ -96,6 +97,11 @@ Sets or changes the standard order of HTTP handler directive(s). Can set directi
|
|||
##### `storage`
|
||||
Configures Caddy's storage mechanism. The default is [`file_system`](/docs/json/storage/file_system/). There are many other available [storage modules](/docs/json/storage/) provided as plugins.
|
||||
|
||||
##### `storage_clean_interval`
|
||||
How often to scan storage units for old or expired assets and remove them. These scans exert lots of reads (and list operations) on the storage module, so choose a longer interval for large deployments. The value is a [duration value](/docs/conventions#durations). Default: 24h.
|
||||
|
||||
Storage will always be cleaned when the process first starts. Then, a new cleaning will be started this duration after the previous cleaning started if the previous cleaning finished in less than half the time of this interval (otherwise next start will be skipped).
|
||||
|
||||
##### `admin`
|
||||
Customizes the [admin API endpoint](/docs/api). If `off`, then the admin endpoint will be disabled. If disabled, config changes will be impossible without stopping and starting the server.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue