이슈
traefik 구조에서 Client 의 real IP 를 log 남길수 있는 방법 찾기
nginx와 php를 사용하는 platform, 실제 client ip를 nginx log에 쌓기 위해서 nginx.conf을 변경
앞단 Traefik 이 proxy 역활, server 에서는 traefik 이 Client 라고 판단 ip 를 찍음 (10.42.0.x )
처리 방법
===================================
set_real_ip_from 10.42.0.0/16;
real_ip_header X-Forwarded-for;
===================================
참고
https://www.loadbalancer.org/blog/nginx-and-x-forwarded-for-header/
set_real_ip_from:
real_ip_header: