This commit is contained in:
a 2024-07-26 15:53:52 -05:00
parent 6897238d3b
commit b9e15fd758
No known key found for this signature in database
GPG key ID: 374BC539FE795AF0

View file

@ -14,7 +14,7 @@ If you are not yet familiar with placeholders, start by reading [here](/docs/con
Internally, placeholders are simply a string in format `{foo.bar}` used as valid configuration values, which is later parsed at runtime. Internally, placeholders are simply a string in format `{foo.bar}` used as valid configuration values, which is later parsed at runtime.
Placeholders-like strings which start with a dollar sign (`{$FOO}`), are evaulated at Caddyfile parse time, and do not need to be dealt with by your plugin. This is because these are not placeholders, but Caddyfile-specific [environmental variable substitution](/docs/caddyfile/concepts#environmental-variables), they just happen to share the `{}` syntax. Placeholders-like strings which start with a dollar sign (`{$FOO}`), are evaulated at Caddyfile parse time, and do not need to be dealt with by your plugin. This is because these are not placeholders, but Caddyfile-specific [environmental variable substitution](/docs/caddyfile/concepts#environment-variables), they just happen to share the `{}` syntax.
It is therefore important to understand that `{env.HOST}` is inherently different from something like `{$HOST}` It is therefore important to understand that `{env.HOST}` is inherently different from something like `{$HOST}`