Traefik Proxy not logging Source IP

As a hobby I’m providing a whole bunch of services on my machine. I’m not interested in user data or usage data. To protect the privacy of my users where possible, I’ve deactivated the logging of source IP addresses in my Traefik Proxy.

I’m using the following CLI parameters in my Traefik docker-compose.yml file to avoid that ClientAddr, ClientHost, ClientUsername and also the X-Real-IP HTTP header is logged:

      - "--accesslog.fields.headers.names.X-Real-Ip=drop"
      - "--accesslog.fields.names.ClientUsername=drop"
      - "--accesslog.fields.names.ClientHost=drop"
      - "--accesslog.fields.names.ClientAddr=drop"

Leave a Reply

Your email address will not be published. Required fields are marked *