Sign inSign up

lokios/nginx-auth-multi-proxy

By lokios

•Updated about 5 years ago

nginx-auth-multi-proxy support basic authentication and create multiple proxy_pass

Image
0

1.2K

lokios/nginx-auth-multi-proxy repository overview

⁠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.

Tag summary

Content type

Image

Digest

Size

59 MB

Last updated

over 9 years ago

docker pull lokios/nginx-auth-multi-proxy