docs: Update a variety of docs for upcoming 2.1 betas

This commit is contained in:
Matthew Holt 2020-05-11 17:13:32 -06:00 committed by Francis Lavoie
parent 9441648ca8
commit fa3b5f6699
No known key found for this signature in database
GPG key ID: 7D1A27F0725BE5D8
5 changed files with 50 additions and 8 deletions

View file

@ -141,6 +141,14 @@ directive "\"abc def\""
Inside quoted tokens, all other characters are treated literally, including spaces, tabs, and newlines.
You can also use a backtick (`\``) to quote tokens:
```
directive `"foo bar"`
```
Backtick strings are convenient when tokens contain quote literals.
## Addresses
@ -219,11 +227,16 @@ You can use any [Caddy placeholders](/docs/conventions#placeholders) in the Cadd
|-----------------|---------------------------------|
| `{dir}` | `{http.request.uri.path.dir}` |
| `{file}` | `{http.request.uri.path.file}` |
| `{header.*}` | `{http.request.header.*}` |
| `{host}` | `{http.request.host}` |
| `{labels.*}` | `{http.request.host.labels.*}` |
| `{hostport}` | `{http.request.hostport}` |
| `{method}` | `{http.request.method}` |
| `{path}` | `{http.request.uri.path}` |
| `{path.*}` | `{http.request.uri.path.*}` |
| `{query}` | `{http.request.uri.query}` |
| `{query.*}` | `{http.request.uri.query.*}` |
| `{re.*.*}` | `{http.regexp.*.*}` |
| `{remote}` | `{http.request.remote}` |
| `{remote_host}` | `{http.request.remote.host}` |
| `{remote_port}` | `{http.request.remote.port}` |
@ -237,6 +250,7 @@ You can use any [Caddy placeholders](/docs/conventions#placeholders) in the Cadd
| `{tls_client_subject}` | `{http.request.tls.client.subject}` |
## Snippets
You can define special blocks called snippets by giving them a name surrounded in parentheses: