Closed oekelly closed 4 months ago
Prior to v2.8.0 you had to use a longer form for filters, with a fields
key in between.
log {
format filter {
fields {
request>headers>User-Agent delete
}
}
}
Your config should work as-is if you use the latest version of the image which has just been released ~4 hours ago.
Many thanks Francis, I was just about to report that it is possibly a difference between Caddy v2.8.0, and v2.7.6 which I am using in caddy-docker-proxy.
Super frustrating that the Caddy docs don't seem to support selecting between minor versions to pick these kind of spec changes.
Hi Team,
Hoping somebody can give me a hand/point me in the correct direction; I'm having difficulty setting up a generic logging snippet with caddy-docker-proxy; the same snippet seems to work with caddy.
Here is the snippet I am creating with lables:
Which appears to parse correctly into a Caddyfile:
I then import this snippet in a subsequent container:
And this causes the following error:
I've copied and pasted this exact generated Caddyfile extract into a base Caddy container, and it seems to run & log requests exactly as expected.
Most likely I am doing something wrong, please point me in the right direction!