mirror of
https://github.com/caddyserver/website.git
synced 2025-04-20 12:15:08 -04:00
log: Clarify header examples for sensitive headers
This commit is contained in:
parent
3bc711fd62
commit
b58f576478
1 changed files with 4 additions and 3 deletions
|
@ -354,21 +354,22 @@ log {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Delete the Authorization request header from the logs:
|
|
||||||
|
Delete the `User-Agent` request header from the logs:
|
||||||
|
|
||||||
```caddy-d
|
```caddy-d
|
||||||
log {
|
log {
|
||||||
format filter {
|
format filter {
|
||||||
wrap console
|
wrap console
|
||||||
fields {
|
fields {
|
||||||
request>headers>Authorization delete
|
request>headers>User-Agent delete
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
Redact multiple sensitive cookies:
|
Redact multiple sensitive cookies. (Note that some sensitive headers are logged with empty values by default; see the [`log_credentials` global option](/docs/caddyfile/options#log-credentials) to enable logging `Cookie` header values):
|
||||||
|
|
||||||
```caddy-d
|
```caddy-d
|
||||||
log {
|
log {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue