This document explains how to install NGINX with Reverse Proxy on a server that runs cPanel & WHM and EasyApache 4.
docs.cpanel.net
I've never had a need to customize the remoteip config file, so I'm not 100% sure if the details you outlined would work or not. If you're still seeing issues after you've received some more ModSec hits, please open a ticket with our support team and we'll be happy to investigate!
After much digging, our team found that unique requests coming into the server are working properly, but that the site is making many requests to itself, causing confusion in the logs.