This commit is contained in:
Santiago Castro 2022-04-29 08:36:09 +09:00 committed by GitHub
commit bcc4b1cfdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -359,7 +359,11 @@ docker run -d -p 80:80 -p 443:443 \
nginxproxy/nginx-proxy
```
You'll need apache2-utils on the machine where you plan to create the htpasswd file. Follow these [instructions](http://httpd.apache.org/docs/2.2/programs/htpasswd.html)
You'll need to create a password file for each virtualhost:
```shell
docker run --rm -ti m31271n/htpasswd <username> <password> > $VIRTUAL_HOST
```
### Custom Nginx Configuration