These are chat archives for fanout/pushpin

Oct 2018
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: ${req.headers['x-forwarded-for']}); (nodejs)