mirror of
https://github.com/caddyserver/website.git
synced 2025-04-22 04:56:17 -04:00
docs: add replace log format directive, global log option (#147)
* caddyfile/directives/log: add docs for new replace directive This commit corresponds with the functionality added in this PR: https://github.com/caddyserver/caddy/pull/4029 * caddyfile: add documentation for new global log option This corresponds with the changes in this PR: https://github.com/caddyserver/caddy/pull/4028
This commit is contained in:
parent
f01036964f
commit
bd9d8eaf71
2 changed files with 23 additions and 0 deletions
|
@ -165,6 +165,14 @@ Marks a field to be skipped from being encoded.
|
|||
<field> delete
|
||||
```
|
||||
|
||||
##### replace
|
||||
|
||||
Marks a field to be replaced with the provided string at encoding time.
|
||||
|
||||
```caddy-d
|
||||
<field> replace <replacement>
|
||||
```
|
||||
|
||||
##### ip_mask
|
||||
|
||||
Masks IP addresses in the field using a CIDR mask, i.e. the number of bytes from the IP to retain, starting from the left side. There is separate configuration for IPv4 and IPv6 addresses.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue