Nextcloud AIO behind Nginx Proxy Manager, questions for Security measures, real IP

Search Google for RemoteIP and proxy-protocol and start digging Down into that to get an idea. Maybe proxy-protocol-V2 if you use SSL passthrough. Point is that it is either RemoteIP or TrustedProxy.