프록시를 통한 실제 IP가 더 이상 인식되지 않음

제 환경에서는 작동하지 않습니다.

참조된 커밋 때문에 제 환경에서 작동이 멈춘 이유를 이제 이해했습니다. 제가 수년간 사용해 온 set_real_ip 치환이 깨져버린 것이었습니다. 더 견고하게 만들려는 이유는 타당하며, 이는 더 나은 방법입니다. 한 번의 호환성 변경 이후로는 미래에 깨질 가능성이 줄어들 것입니다.

after_bundle_exec 치환이 적용되지 않는 이유는 알 수 없지만, 파일 드롭 방식으로 전환할 예정입니다.

제 환경에서는 이렇게 하면 작동합니다. 다음 사람을 위해 공유합니다:

run:
  - file:
     path: /etc/nginx/conf.d/outlets/server/real-ip-recursive.conf
     chmod: 644
     contents: |
       real_ip_recursive on;
  - file:
     path: /etc/nginx/conf.d/outlets/server/real-ip-header.conf
     chmod: 644
     contents: |
       real_ip_header X-Forwarded-For;
  - file:
     path: /etc/nginx/conf.d/outlets/server/set-real-ip-from.conf
     chmod: 644
     contents: |
       set_real_ip_from 192.168.0.0/16;
       set_real_ip_from 172.16.0.0/12;
       set_real_ip_from 10.0.0.0/8;