If you have a single IP for the proxy, something like:
- replace:
filename: /etc/nginx/conf.d/discourse.conf
from: "types {"
to: |
set_real_ip_from 192.168.0.1;
real_ip_header X-Forwarded-For;
real_ip_recursive on;
types {