Skip to content

rpardini/nginx-proxy-connect-stable-alpine

Repository files navigation

nginx:stable-alpine + proxy_connect

Upstreams:

I removed gpg sig verification for the sake of faster builds. Also most modules with external dependencies were removed.

master (:latest) is actually unstable

For stable versions, use the tagged builds, eg, nginx-1.18.0-alpine-3.12.1

Usage

It's on Docker Hub; :latest is from master and unstable.

docker run -it -p 8081:80 rpardini/nginx-proxy-connect-stable-alpine
  • Just like nginx:stable-alpine, but you can use proxy_connect;.
  • Also proxy_connect_address $someVar; is supported; this has the "rewrite" version of the patch
  • you can map on $connect_host
  • log $connect_addr for host:port of the final destination

Why?

I wanted a more contained way of doing DNS overrides.

If you can convince a client program to use an https proxy, and inject your own CA certificate as trusted, you can use proxy_connect to send traffic to a second nginx server and do caching, filtering, rewriting, and who knows what else there.