mirror of
https://github.com/caddyserver/website.git
synced 2025-06-22 14:10:32 -04:00
docs: roll_uncompressed
, roll_local_time
This commit is contained in:
parent
891d55239d
commit
71cced03cb
2 changed files with 5 additions and 1 deletions
|
@ -90,6 +90,8 @@ A file. By default, log files are rotated ("rolled") to prevent disk space exhau
|
||||||
output file <filename> {
|
output file <filename> {
|
||||||
roll_disabled
|
roll_disabled
|
||||||
roll_size <size>
|
roll_size <size>
|
||||||
|
roll_uncompressed
|
||||||
|
roll_local_time
|
||||||
roll_keep <num>
|
roll_keep <num>
|
||||||
roll_keep_for <days>
|
roll_keep_for <days>
|
||||||
}
|
}
|
||||||
|
@ -98,6 +100,8 @@ output file <filename> {
|
||||||
- **<filename>** is the path to the log file.
|
- **<filename>** is the path to the log file.
|
||||||
- **roll_disabled** disables log rolling. This can lead to disk space depletion, so only use this if your log files are maintained some other way.
|
- **roll_disabled** disables log rolling. This can lead to disk space depletion, so only use this if your log files are maintained some other way.
|
||||||
- **roll_size** is the size at which to roll the log file. The current implementation supports megabyte resolution; fractional values are rounded up to the next whole megabyte. For example, `1.1MiB` is rounded up to `2MiB`. Default: `100MiB`
|
- **roll_size** is the size at which to roll the log file. The current implementation supports megabyte resolution; fractional values are rounded up to the next whole megabyte. For example, `1.1MiB` is rounded up to `2MiB`. Default: `100MiB`
|
||||||
|
- **roll_uncompressed** turns off gzip log compression. Default: gzip compression is enabled.
|
||||||
|
- **roll_local_time** sets the rolling to use local timestamps in filenames. Default: uses UTC time.
|
||||||
- **roll_keep** is how many log files to keep before deleting the oldest ones. Default: `10`
|
- **roll_keep** is how many log files to keep before deleting the oldest ones. Default: `10`
|
||||||
- **roll_keep_for** is how long to keep rolled files as a [duration string](/docs/conventions#durations). The current implementation supports day resolution; fractional values are rounded up to the next whole day. For example, `36h` (1.5 days) is rounded up to `48h` (2 days). Default: `2160h` (90 days)
|
- **roll_keep_for** is how long to keep rolled files as a [duration string](/docs/conventions#durations). The current implementation supports day resolution; fractional values are rounded up to the next whole day. For example, `36h` (1.5 days) is rounded up to `48h` (2 days). Default: `2160h` (90 days)
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,7 @@ Caddy's configuration supports the use of _placeholders_ (variables). Using plac
|
||||||
|
|
||||||
Placeholders are bounded on either side by curly braces `{ }` and contain the variable name inside, for example: `{foo.bar}`. Placeholder braces can be escaped, `\{like so\}`. Variable names are typically namespaced with dots to avoid collisions across modules.
|
Placeholders are bounded on either side by curly braces `{ }` and contain the variable name inside, for example: `{foo.bar}`. Placeholder braces can be escaped, `\{like so\}`. Variable names are typically namespaced with dots to avoid collisions across modules.
|
||||||
|
|
||||||
Which placeholders are available depends on the context. Not all placeholders are available in all parts of the config. For example, [the HTTP app sets placeholders](/docs/json/apps/http/) that are only available in areas of the config related to handling HTTP requests.
|
Which placeholders are available depends on the context. Not all placeholders are available in all parts of the config. For example, [the HTTP app sets placeholders](/docs/json/apps/http/#docs) that are only available in areas of the config related to handling HTTP requests.
|
||||||
|
|
||||||
The following placeholders are always available:
|
The following placeholders are always available:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue