代理调用使用nginx通过公司代理向远程URI添加头

代理调用使用nginx通过公司代理向远程URI添加头,nginx,reverse-proxy,http-proxy,Nginx,Reverse Proxy,Http Proxy,我有一个第三方应用程序,它需要访问远程位置上的HTTPS URI。以下是我的限制: Access to remote URI need to go through a corporate HTTP PROXY Calls need to have specifics security headers Need to use docker images 以下是我的局限性: Third party software does not provide HTTP PROXY configuration

我有一个第三方应用程序,它需要访问远程位置上的HTTPS URI。以下是我的限制:

Access to remote URI need to go through a corporate HTTP PROXY
Calls need to have specifics security headers
Need to use docker images
以下是我的局限性:

Third party software does not provide HTTP PROXY configuration
Third party software does not provide setting for customer headers.
I cannot modify third party app.
以下是我能做的:

Configure REMOTE URI in the third party app.
Use any docker image available on docker hub.
我正在考虑使用反向代理将调用隧道传输到远程HTTPS URI

第三方应用=>NGINX(添加安全头)=>HTTP代理->远程URI

我尝试在NGINX中对上游模块使用proxy_pass,但没有成功。也许我没有正确的方法,应该使用SQUID而不是NGINX,你觉得呢