In reverse proxy mode, mitmproxy accepts standard HTTP requests and forwards them to the specified upstream server. This is in contrast to forward proxy mode, in which mitmproxy forwards HTTP proxy requests to an upstream server. Note that the displayed URL for flows in this mode will use the value of the __Host__ header field from the request, not the reverse proxy server.
command-line -P http[s]://hostname[:port]
mitmproxy shortcut P