This project provides a simple, flexible, and dynamically configurable reverse proxy solution based on Nginx. It allows HTTP requests to be forwarded to various backend servers, which are defined through environment variables.
To start the Nginx Reverse Proxy, use the following Docker command:
docker run -d -p 80:80 \
-e PROXY_0_HOST=example.com \
-e PROXY_0_PASS=http://backend1.local \
-e PROXY_1_HOST=another-example.com \
-e PROXY_1_PASS=http://backend2.local \
wodanio/nginx-reverse-proxy:latest
docker run -d -p 80:80 \
-e PROXY_0_HOST=example.com \
-e PROXY_0_SET_HEADER=true \
-e PROXY_0_UPSTREAM=backend1.local,backend2.local,backend3.local \
-e PROXY_1_HOST=another-example.com \
-e PROXY_1_UPSTREAM_HTTPS=true \
-e PROXY_1_UPSTREAM=backend1.local,backend2.local \
wodanio/nginx-reverse-proxy:latest
docker pull wodanio/nginx-reverse-proxy:latest