Docker of nginx proxy tool with username/password.
docker run --rm -it liuchong/nginx-htpasswd start -h
usage:
-u [username] your http username
-p [password] your http password
-c [script] your specified script
-a [args] args of your script
-P [args] nginx listening port
-X [args] proxy_pass of host:port
Please check examples:
Certainly, you can copy and paste the codes from this repository to fit your need, enjoy your self!