Improved placeholder docs

This commit is contained in:
Francis Lavoie 2024-10-21 21:08:20 -04:00
parent 65f627e6bf
commit 1e1747b6cb
No known key found for this signature in database
GPG key ID: 52BC55A211F19186
6 changed files with 78 additions and 62 deletions

View file

@ -874,6 +874,12 @@ Match an output of the [`map` directive](/docs/caddyfile/directives/map) named `
vars {magic_number} 3 5
```
Match an arbitrary placeholder's value, i.e. the authenticated user's ID, either `Bob` or `Alice`:
```caddy-d
vars {http.auth.user.id} Bob Alice
```
---