Restricting Access with nginx-proxy: Basic Auth and IP Allowlists

nginx-proxy can do basic authentication and access limiting

This article is a note on access restriction using Docker’s jwilder/nginx-proxy. Incidentally, this is information that is also written in the official documentation Basic authentication Create a .htpasswd folder inside the nginx-proxy folder Create a file named after the domain, in htpasswd format, under the .htpasswd folder Set .hpasswd as a volume in docker-compose.yml .htpasswd In the .htpasswd folder, create a file in htpasswd format named after the custom domain you want to protect with basic authentication [Read More]