This dockerfile build basic authorization proxy used nginx.
- Run the following command.
$ docker build -t nginx-auth-proxy .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-proxyand then, you can access to localhost:5602 or localhost:9201 on browser.