Skip to content

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

License

Notifications You must be signed in to change notification settings

KornM/reverse-nginx-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages