Add basic/digest auth doc
Signed-off-by: Emile Vauge <emile@vauge.com> Signed-off-by: Emile Vauge <emile@vauge.com>
This commit is contained in:
parent
bc8a92caa9
commit
16e2c3b1e0
4 changed files with 135 additions and 30 deletions
|
@ -97,3 +97,21 @@ entryPoint = "https"
|
|||
backend = "backend2"
|
||||
rule = "Path:/test"
|
||||
```
|
||||
|
||||
## Enable Basic authentication in an entrypoint
|
||||
|
||||
With two user/pass:
|
||||
|
||||
- `test`:`test`
|
||||
- `test2`:`test2`
|
||||
|
||||
Passwords are encoded in MD5: you can use htpasswd to generate those ones.
|
||||
|
||||
```
|
||||
defaultEntryPoints = ["http"]
|
||||
[entryPoints]
|
||||
[entryPoints.http]
|
||||
address = ":80"
|
||||
[entryPoints.http.auth.basic]
|
||||
users = ["test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/", "test2:$apr1$d9hr9HBB$4HxwgUir3HP4EsggP/QNo0"]
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue