Skip to content

Latest commit

 

History

History
25 lines (13 loc) · 567 Bytes

README.md

File metadata and controls

25 lines (13 loc) · 567 Bytes

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"