I have nginx container running as a service in Docker Swarm inside user created overlay network. Both created with:
docker network create --driver overlay proxy
docker service create --name proxy --network proxy -p 80:80 nginx
When accessing an nginx site through the browser, in nginx access log remote address is logged as 10.255... formatted address, what I presume to be the Swarm load balancer address. The question is how to know/log the address of the end client accessing the site and not the load balancer address.
I have nginx container running as a service in Docker Swarm inside user created overlay network. Both created with:
When accessing an nginx site through the browser, in nginx access log remote address is logged as 10.255... formatted address, what I presume to be the Swarm load balancer address. The question is how to know/log the address of the end client accessing the site and not the load balancer address.