Skip to content

Commit 648516b

Browse files
committed
README: Add multiple users info (close #1)
1 parent 482abab commit 648516b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ docker run -d \
3333
- `FORWARD_PORT` (default: `80`): Port of the **source** container that should be forwarded
3434
> The container does not need any volumes to be mounted! Nonetheless you will find all interesting files at `/etc/nginx/*`.
3535
36+
## Multiple Users
37+
Multiple Users are possible by separating the users by newline. To pass the newlines properly you need to use Shell Quoting (like `$'foo\nbar'`):
38+
```
39+
docker run -d --link web:web --name auth \
40+
-e HTPASSWD=$'foo:$apr1$odHl5EJN$KbxMfo86Qdve2FH4owePn.\ntest:$apr1$LKkW8P4Y$P1X/r2YyaexhVL1LzZAQm.' \
41+
beevelop/nginx-basic-auth
42+
```
43+
results in 2 users (`foo:bar` and `test:test`).
44+
3645
## Troubleshooting
3746
```
3847
nginx: [emerg] host not found in upstream "web" in /etc/nginx/conf.d/auth.conf:80

0 commit comments

Comments
 (0)