alpine-traefik
alpine-traefik copied to clipboard
Customize Access Logs (with Rancher)
Hello, I'm beginning in Rancher and I'm using Traefik as a reverse proxy for my containers.
I would like to add the frontend name in the access log, and maybe change the Client Address with the real one from X-forwareded-for header.
I've found this doc: https://docs.traefik.io/configuration/logs/#access-logs But I don't understand how to apply that with Rancher metadata API or environment variables .
What would be the best practice to do that ?
Regards, Sgrunt
Hi @sgrunt91 ,
custom access logs are not integrated in this image. To be able to configure them, environment variables and init logic should be added at this image. PR to get it would be very welcome.
Best regards...