There’s no easy way to get what you want using the process information available for Nginx.
You can create an “Advanced detection rule” for nginx and use the “Dynatrace custom node ID” for the “Process Instance Extraction”. Then set the DT_NODE_ID environment variable at Nginx startup with to IP address.