KornM / reverse-nginx-container

Container which hosts a nginx where proxy pass can be configured via environment variable

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NGINX Container as reverseproxy

Container forwards all requests to URL given in parameter PROXYPASS

Container can handle basic auth with user password, in that case please add

USERNAME= PASSWORD=

to the environment.

Encrypt with openssl and apr1 echo password |openssl passwd -apr1 -stdin

Example:

without basic auth:

docker run -p 0.0.0.0:80 -e PROXYPASS="http://www.google.de"

with basic auth: docker run -p 0.0.0.0:80 -e USERNAME=user -e PASSWORD='$apr1$rqAt6p.S$N1U1Vot16Cb3XVhdsq0yD.' -e PROXYPASS="http://www.google.de"

About

Container which hosts a nginx where proxy pass can be configured via environment variable

License:Apache License 2.0


Languages

Language:Shell 100.0%