sudo docker build -t lloydzhou/nginx-proxy-connect -f Dockerfile .
htpasswd -c htpasswd lloyd:lloyd
sudo docker run --rm -it -p 7777:7777 lloydzhou/nginx-proxy-connect:latest
curl -v -x http://127.0.0.1:7777 https://www.baidu.com
- https
- auth: using openresty + lua