Mitmproxy with Nginx

I want to connect multiple clients on Mitmproxy servers (multiple instances) using Nginx. Will it be possible to route all the traffic from client through Nginx to upstream Mitmproxy servers? Thanks.

Do you deal with it?I want to know how mitmproxy and nginx work together.