L'ultimo IP mostra l'indirizzo IP del reverse proxy

You only need the last part - inserting set_real_ip_from <CIDR>; to the nginx.conf. The other parts are more complicated to support Cloudflare adding new IPs.