Sign inSign up

perara/nginx-proxy

By perara

•Updated about 6 years ago

A simple container that proxy passes to an external source. Supports tcp, HTTP, and basic_auth.

Image
0

385

perara/nginx-proxy repository overview

⁠Nginx Proxy Pass

A simple container that proxy passes to an external source.

A number of great containers for reverse proxying to containers exist (I'm a fan of jwilder/nginx-proxy⁠) however I couldn't find any that would proxy pass to external sources on the fly.

This version supports tcp, http with basic_auth if needed.

⁠Running with docker
docker run -d -p 80:80 -e PROTOCOL=<protocol> -e LISTEN_PORT=<port> -e TARGET_SERVER=<proxy location> perara/nginx-proxy
⁠Running with docker-compose
version: "2"
services:

  example.com:
    build: .
    ports:
      - 3307:3306
    environment:
      PROTOCOL: http
      LISTEN_PORT: 3306
      TARGET_SERVER: http://example.com:80,http://hotmail.com:80
      HTTP_AUTH_USERNAME: admin
      HTTP_AUTH_PASSWORD: admin
⁠Environment Variables
EnvironmentRequiredExamplePossible Values
PROTOCOLxhttphttp,https,tcp
LISTEN_PORTx801-65535
TARGET_SERVERxhttp://example.com:80⁠Comma Separated List
HTTP_AUTH_USERNAMEadminAny
HTTP_AUTH_PASSWORDadminAny

Tag summary

Content type

Image

Digest

Size

9.5 MB

Last updated

about 6 years ago

docker pull perara/nginx-proxy