caddy/caddyconfig
Francis Lavoie 8cc8f9fddd
httpcaddyfile: Add a couple more placeholder shortcuts (#5015)
This adds:
- `{file.*}` -> `{http.request.uri.path.file.*}`
- `{file_match.*}` -> `{http.matchers.file.*}`

This is a follow-up to #4993 which introduces the new URI file placeholders, and a shortcut for using `file` matcher output.

For example, where the `try_files` directive is a shortcut for this:

```
@try_files file <files...>
rewrite @try_files {http.matchers.file.relative}
```

It could instead be:
```
@try_files file <files...>
rewrite @try_files {file_match.relative}
```
2022-09-05 21:41:48 -06:00
..
caddyfile map: Coerce val to string, fix #4987 2022-09-01 21:15:44 -06:00
httpcaddyfile httpcaddyfile: Add a couple more placeholder shortcuts (#5015) 2022-09-05 21:41:48 -06:00
configadapters.go chore: Bump up to Go 1.19, minimum 1.18 (#4925) 2022-08-02 16:39:09 -04:00
httploader.go caddyconfig: Support placeholders in HTTP loader 2022-02-17 22:58:25 -07:00
load.go Replace strings.Index usages with strings.Cut (#4930) 2022-08-04 11:17:35 -06:00