docker run -e BASIC_AUTH_USERNAME=user -e BASIC_AUTH_PASSWORD=password -p 80:80 -v /home/user/content:/var/www/html smokimk/nginx-static-basic-auth
-
BASIC_AUTH_USERNAME
-
BASIC_AUTH_PASSWORD
-
PORT (defaults 80)
-
WORKER_PROCESSES (defaults auto)
-
CLIENT_MAX_BODY_SIZE (defaults 1m)
Based on dtan4/nginx-basic-auth-proxy and carlosflorencio/docker-nginx-static-spa