你的 discourse.conf 中是否有部分配置指示它使用你的 IPv6 地址执行 set_real_ip?类似如下内容:
- replace:
filename: /etc/nginx/conf.d/discourse.conf
from: "types {"
to: |
set_real_ip_from 192.168.1.0/24;
set_real_ip_from 172.18.0.0/24;
set_real_ip_from 172.17.0.0/24;
set_real_ip_from <SOME_IP_V6_ADDRESS_THING_HERE?>
real_ip_recursive on;
real_ip_header X-Forwarded-For;
types {