mirror of
https://github.com/caddyserver/website.git
synced 2025-05-06 11:47:12 -04:00
Fix basicauth example
This commit is contained in:
parent
2541c63775
commit
f6cce599bf
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ basicauth [<matcher>] [<hash_algorithm> [<realm>]] {
|
|||
- **<hash_algorithm>** is the name of the password hashing algorithm (or KDF) used for the hashes in this configuration. Default: `bcrypt`
|
||||
- **<realm>** is a custom realm name.
|
||||
- **<username>** is a username or user ID.
|
||||
- **<hashed_password>** is the password hash.
|
||||
- **<hashed_password>** is the base-64 encoding of the password hash.
|
||||
- **<salt_base64>** is the base-64 encoding of the password salt, if an external salt is required.
|
||||
|
||||
|
||||
|
@ -37,7 +37,7 @@ Protect all resources in /secret so only Bob can access them with the password "
|
|||
|
||||
```caddy-d
|
||||
basicauth /secret/* {
|
||||
Bob $2a$14$Zkx19XLiW6VYouLHR5NmfOFU0z2GTNmpkT/5qqR7hx4IjWJPDhjvG
|
||||
Bob JDJhJDE0JFpreDE5WExpVzZWWW91TEhSNU5tZk9GVTB6MkdUTm1wa1QvNXFxUjdoeDRJaldKUERoanZH
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue