caddy/caddyconfig
Francis Lavoie a8d45277ca
caddyfile: Fix import replacing unrelated placeholders (#4129)
* 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
2021-04-22 18:29:04 -06:00
..
caddyfile caddyfile: Fix import replacing unrelated placeholders (#4129) 2021-04-22 18:29:04 -06:00
httpcaddyfile httpcaddyfile: Take into account host scheme/port (fix #4113) 2021-04-16 11:17:22 -06:00
configadapters.go admin: Identity management, remote admin, config loaders (#3994) 2021-01-27 16:16:04 -07:00
httploader.go admin: Identity management, remote admin, config loaders (#3994) 2021-01-27 16:16:04 -07:00
load.go admin: Identity management, remote admin, config loaders (#3994) 2021-01-27 16:16:04 -07:00