alpine-traefik icon indicating copy to clipboard operation
alpine-traefik copied to clipboard

Customize Access Logs (with Rancher)

Open sgrunt91 opened this issue 6 years ago • 1 comments

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

sgrunt91 avatar Jun 04 '18 10:06 sgrunt91

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...

rawmind0 avatar Jul 31 '18 14:07 rawmind0