{"repo":"beevelop/docker-nginx-basic-auth","free":true,"listed":false,"github":"https://github.com/beevelop/docker-nginx-basic-auth","clone":"git clone https://github.com/beevelop/docker-nginx-basic-auth.git","description":":closed_lock_with_key: Simple Docker image for basic authentication","language":"Dockerfile","stars":152,"topics":["docker","docker-image","nginx","authentication","container-image","containerization"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Docker Nginx Basic Auth - Simple Authentication Proxy Lightweight nginx reverse proxy with HTTP basic authentication for securing Docker containers and web applications. Quickstart Try accessing and logging in with username foo and password bar . Advanced Use single quotes to prevent unwanted interpretation of $ signs! Configuration - HTPASSWD (default: foo:$apr1$odHl5EJN$KbxMfo86Qdve2FH4owePn. ): Will be written to the .htpasswd file on launch (non-persistent) - FORWARD PORT (default: 80 ): Port of the source container that should be forwarded - FORWARD HOST (default: web ): Hostname of the source container that should be forwarded The container does not need any volumes to be mounted! Nonetheless you will find all interesting files at /etc/nginx/ . Multiple Users Multiple Users are possible by separating the users by newline. To pass the newlines properly you need to use Shell Quoting (like $'foo\\nbar' ): results in 2 users ( foo:bar and test:test ). Troubleshooting Error: nginx: [emerg] host not found in upstream \"web\" - Ensure you link the container as web using --link foobar:web Limitations - SSL/HTTPS is not currently supported - For SSL requirements, consider using jwilder/nginx-proxy as a central gateway with VIRTUAL HOST environment variable --- All Docker Images Badge Pulls Build Status Release Date Release --- --- --- --- --- --- Use tags where possible, because","default_branch":null,"files":null,"tree":[],"storefront":"/r/beevelop","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/beevelop/docker-nginx-basic-auth/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}