Skip to main content

Configuring Nginx as a forward proxy for Convoy

Nginx is a fast HTTP Proxy Server. It is usually used as a reverse proxy, but it can also serve as a forward proxy.

Configuring Nginx as a Forward Proxy

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
  • Define your Dockerfile file:
terminal
  • Add the nginx.conf file with the forward proxy configuration
terminal
Once you’ve built the image and have it running in a container, you can now update your convoy.json with the proxy URL.
terminal