Fix basicauth example

This commit is contained in:
Clément Escolano 2022-09-26 10:10:39 +02:00 committed by GitHub
parent 2541c63775
commit f6cce599bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ basicauth [<matcher>] [<hash_algorithm> [<realm>]] {
- **&lt;hash_algorithm&gt;** is the name of the password hashing algorithm (or KDF) used for the hashes in this configuration. Default: `bcrypt`
- **&lt;realm&gt;** is a custom realm name.
- **&lt;username&gt;** is a username or user ID.
- **&lt;hashed_password&gt;** is the password hash.
- **&lt;hashed_password&gt;** is the base-64 encoding of the password hash.
- **&lt;salt_base64&gt;** 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
}
```