mirror of
https://github.com/caddyserver/website.git
synced 2025-04-24 05:56:15 -04:00
docs: Add Caddyfile syntax highlighting (#41)
This commit is contained in:
parent
75fcfc21bb
commit
e0f5ee1bb9
34 changed files with 215 additions and 179 deletions
|
@ -15,7 +15,7 @@ Caddy configuration does not accept plaintext passwords; you MUST hash them befo
|
|||
|
||||
## Syntax
|
||||
|
||||
```
|
||||
```caddy-d
|
||||
basicauth [<matcher>] [<hash_algorithm>] {
|
||||
<username> <hashed_password_base64> [<salt_base64>]
|
||||
...
|
||||
|
@ -32,7 +32,7 @@ basicauth [<matcher>] [<hash_algorithm>] {
|
|||
|
||||
Protect all resources in /secret so only Bob can access them with the password "hiccup":
|
||||
|
||||
```
|
||||
```caddy-d
|
||||
basicauth /secret/* {
|
||||
Bob JDJhJDEwJEVCNmdaNEg2Ti5iejRMYkF3MFZhZ3VtV3E1SzBWZEZ5Q3VWc0tzOEJwZE9TaFlZdEVkZDhX
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue