I have certainly been experimenting and keep doing so ![]()
But within the context of reverse proxies, wouldn’t it be better to use handle_response rather than intercept?
My idea would be something like…
example.com {
<log options omitted>
reverse_proxy localhost:8000 {
@ok status 1xx 2xx 3xx
handle_response @ok {
copy_response
@local `remote_ip('192.168.1.10', '192.168.1.11')`
log_skip @local
}
}
}
Where the intention would be to log all external requests, and both 4xx and 5xx errors originating from two local IP addresses.
PS: I think my questions/comments still align with the original question, but I am happy to create a separated message if preferred.