Added anonymised logs as mentionned in the privacy policy (we finally
did that yeah)
This commit is contained in:
parent
4d0376ae03
commit
202c5f41b4
@ -1,7 +1,32 @@
|
|||||||
{
|
{
|
||||||
log {
|
log {
|
||||||
output discard
|
# Anonymised IPs, User-Agents, and Cookies, also removed the URI as mentionned in the privacy policy.
|
||||||
|
# Subject to change, if we find any missing config we haven't filtered, it will be added.
|
||||||
|
output file /var/log/caddy/caddy.log
|
||||||
|
format filter {
|
||||||
|
wrap json
|
||||||
|
fields {
|
||||||
|
request>remote_ip ip_mask {
|
||||||
|
ipv4 24
|
||||||
|
ipv6 64
|
||||||
}
|
}
|
||||||
|
request>headers>X-Forwarded-For ip_mask {
|
||||||
|
ipv4 24
|
||||||
|
ipv6 64
|
||||||
|
}
|
||||||
|
request>headers>client_ip ip_mask {
|
||||||
|
ipv4 24
|
||||||
|
ipv6 64
|
||||||
|
}
|
||||||
|
request>headers>Cookie cookie {
|
||||||
|
replace session REDACTED
|
||||||
|
delete secret
|
||||||
|
}
|
||||||
|
request>headers>User-Agent delete
|
||||||
|
request>uri delete
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
order rate_limit before basicauth
|
order rate_limit before basicauth
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user