Nginx can be configured as a forward proxy, however the default configuration doesn’t work very well with HTTPS connections. A solution for this, is to build and compile Nginx with the ngx_http_proxy_connect_module. The module allows the forward proxying work well with SSL connnections.Using Docker, here’s how you can build a custom Nginx image with the ngx_http_proxy_connect_module installed