/reverse-nginx-container

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

Primary LanguageShellApache License 2.0Apache-2.0

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"