Skip to content

napat1412/docker-auth-proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker basic authorization proxy

This dockerfile build basic authorization proxy used nginx.

Build

  1. Run the following command.
$ docker build -t nginx-auth-proxy .

Run

Assumption
kibana running on host: kibana and listen port is 5601. elasticsearch running on host: elasticsearch and listen port is 9200. If you want to proxy from nginx to kibana, you run the following command.

$ docker run -d -p 5602:5602 -p 9201:9201 \
             -e USERNAME=admin \
             -e PASSWORD=admin \
             -e PROXY=kibana:5601,5602;elasticsearch:9200,9201 \
             nginx-auth-proxy

and then, you can access to localhost:5602 or localhost:9201 on browser.

About

Docker image for Nginx Basic Authorization Proxy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 64.2%
  • Dockerfile 35.8%