diff options
author | Francis Lavoie <lavofr@gmail.com> | 2021-04-22 20:29:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-22 18:29:04 -0600 |
commit | a8d45277ca387ca4769fb4e881d242a5896cca5a (patch) | |
tree | 35dbfdcb7371df0eb6e42806836f271f25b769b6 /modules/caddyhttp/reverseproxy | |
parent | 1e218e1d2e3986b7cc1cd7335b43f11a4f194b6e (diff) |
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
Diffstat (limited to 'modules/caddyhttp/reverseproxy')
0 files changed, 0 insertions, 0 deletions