I am using Roxy in docker and added a healthcheck like this:
HEALTHCHECK --interval=2s --timeout=5s --retries=10 \
CMD ["/usr/bin/xh", "--timeout=2", "--proxy", "http:http://localhost:3128", "http://connectivitycheck.gstatic.com/generate_204"]
And the config has a rule like this:
- name: "allow-healthcheck"
rule: 'host("connectivitycheck.gstatic.com") && path("/generate_204") = pass'
This causes frequent log messages, that I'd prefer to be at a debug level or not logged at all.
{"timestamp":"2026-05-06T05:05:14.417171Z","level":"INFO","fields":{"method":"POST","host":"connectivitycheck.gstatic.com","path":"/generate_204","rule":"allow-healthcheck","action":"forward"},"target":"proxy","span":{"name":"handle_request"},"spans":[{"client_addr":"127.0.0.1:59186","method":"POST","uri":"http://connectivitycheck.gstatic.com/generate_204","version":"HTTP/1.1","name":"proxy"},{"name":"handle_request"}]}
I don't think there's a way currently to set a log level per rule. So, this might be a feature enhancement request.
P.S. Great project!
I am using Roxy in docker and added a healthcheck like this:
And the config has a rule like this:
This causes frequent log messages, that I'd prefer to be at a debug level or not logged at all.
I don't think there's a way currently to set a log level per rule. So, this might be a feature enhancement request.
P.S. Great project!