Есть ли в вашем файле discourse.conf раздел, который указывает использовать set_real_ip с вашим IPv6-адресом, что-то вроде этого?
- 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 <НЕКОТОРЫЙ_АДРЕС_IPV6_ЗДЕСЬ?>
real_ip_recursive on;
real_ip_header X-Forwarded-For;
types {