These are chat archives for fanout/pushpin

18th
Oct 2018
Adrian
@picarsite
Oct 18 2018 20:14
@jkarneges I trapped in a two years old bug in docker which is still not resolved and affects a pushpin docker container. The ip address of the requesting client is not forwarded correctly in the "X-Forwarded-For" header. After enabling this option in pushpin.conf and reading the header of the request, I just get the IP address of the docker container and not of the requesting client. This issue is not pushpin related, it affects each proxy server which is hosted in docker. There is one theard where one user found a solution for a nginx proxy. My question is now, is it possible to do the same for pushpin in docker? Steps to reproduce: Add this line to the dockerfile and run the container: "-e 's/x_forwarded_for=.*/x_forwarded_for=truncate:0,append/' \" then run a simple server in the background which prints out the ip address out of the header like this: logger.info(x-forwarded-for: ${req.headers['x-forwarded-for']}); (nodejs)
image.png