mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-27 06:03:48 +03:00
a8d45277ca
* caddyfile: Fix `import` replacing unrelated placeholders See https://caddy.community/t/snippet-issue-works-outside-snippet/12231 So it turns out that `NewReplacer()` gives a replacer with some global defaults (like `{env.*}` and some system and time placeholders), which is not ideal when running `import` because we just want to replace `{args.*}` only, and nothing else. * caddyfile: Add test |
||
---|---|---|
.. | ||
caddyfile_adapt | ||
testdata | ||
autohttps_test.go | ||
caddyfile_adapt_test.go | ||
caddyfile_test.go | ||
handler_test.go | ||
map_test.go | ||
reverseproxy_test.go | ||
sni_test.go | ||
stream_test.go |