mirror of
https://github.com/caddyserver/website.git
synced 2025-05-06 11:47:12 -04:00
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
This commit is contained in:
parent
caede64af5
commit
da88655abf
1 changed files with 8 additions and 0 deletions
|
@ -165,6 +165,14 @@ Marks a field to be skipped from being encoded.
|
||||||
<field> delete
|
<field> delete
|
||||||
```
|
```
|
||||||
|
|
||||||
|
##### replace
|
||||||
|
|
||||||
|
Marks a field to be replaced with the provided string at encoding time.
|
||||||
|
|
||||||
|
```caddy-d
|
||||||
|
<field> replace <replacement>
|
||||||
|
```
|
||||||
|
|
||||||
##### ip_mask
|
##### 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.
|
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