최근에 이 관련해서 무언가를 기억하는데, 나도 찾을 수가 없습니다. Handling the "chain of trust" of the end user's real IP - #8 by supermathie 에는 Cloudflare 템플릿으로 연결되는 링크가 포함되어 있는데, 이는 좋은 모델이 될 수 있다고 생각합니다.
제가 현재 수행하고 있는 작업은 여전히 작동하는 것 같습니다(“Discourse 2026.6.0-latest - GitHub - discourse/discourse: A platform for community discussion. Free, open, simple. · GitHub version 5c507d8359f4d6e8a5d98780c622d51cedbd9bd7” 기준)
after_bundle_exec:
- replace:
filename: /etc/nginx/conf.d/discourse.conf
from: "types {"
to: |
set_real_ip_from 192.168.1.0/24;
set_real_ip_from 192.168.11.0/24;
set_real_ip_from 172.16.0.0/12;
set_real_ip_from 10.0.0.0/8;
real_ip_recursive on;
real_ip_header X-Forwarded-For;
types {