just a try / not sure if it will work
- when starting your nginx try to use a shellscript script that sets http_proxy / https_proxy:
export http_proxy=http://server-ip:port/ ; i'm not sure it nginx has some options to use a 3rd proxy.
- maybe you can use firewall-rules to do a simple portforwarding to your
proxy P, but i'm not sure it will work (for intercepting http-traffic and using squid as a transparent proxy it works)
maybe https is an issue
regards,
mex