Sign inSign up

wodanio/nginx-reverse-proxy

By wodanio

Updated 22 days ago

Image
0

50K+

wodanio/nginx-reverse-proxy repository overview

Nginx Reverse Proxy

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.

Usage

To start the Nginx Reverse Proxy, use the following Docker command:

1. Method
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
2. Method
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

Tag summary

Content type

Image

Digest

sha256:07f22aa0e

Size

60.4 MB

Last updated

22 days ago

docker pull wodanio/nginx-reverse-proxy