|
37 | 37 | ## Environment variables: Set to a specific value, use ${VAR} interpolation, or forward from the host. Default is empty. |
38 | 38 | ## Bash-style defaults are supported: ${VAR:-default} uses default when VAR is unset or empty, ${VAR-default} when unset only. |
39 | 39 | ## Defaults can themselves contain ${...} interpolations. |
| 40 | +## Note: only `${VAR}` triggers interpolation; `$VAR` (no braces) is treated as a literal string. |
| 41 | +## Forwarded vars ("ENV1") fail startup if missing; value strings with unresolved `${VAR}` also fail. |
40 | 42 | # env_vars = ["ENV1", {key = "ENV2", value = "somevalue"}, {key = "ENV3", value = "${HOST_VAR}"}, {key = "ENV4", value = "prefix ${HOST_VAR}"}, {key = "ENV5", value = "${OPTIONAL:-fallback}"}] |
41 | 43 |
|
42 | 44 | ## Outgoing HTTP host allowlist. |
|
57 | 59 | ## - Omitting `methods` entirely allows nothing (config warning) |
58 | 60 | ## |
59 | 61 | ## Multiple entries can match the same request; they form a union (secrets are merged). |
| 62 | +## The `pattern` field supports `${VAR}` and `${VAR:-default}` env var interpolation. |
60 | 63 | # [[activity_wasm.allowed_host]] |
61 | 64 | # pattern = "api.github.com" |
62 | 65 | # methods = "*" |
|
258 | 261 | ## Environment variables: Set to a specific value, use ${VAR} interpolation, or forward from the host. Default is empty. |
259 | 262 | ## Bash-style defaults are supported: ${VAR:-default} uses default when VAR is unset or empty, ${VAR-default} when unset only. |
260 | 263 | ## Defaults can themselves contain ${...} interpolations. |
| 264 | +## Note: only `${VAR}` triggers interpolation; `$VAR` (no braces) is treated as a literal string. |
| 265 | +## Forwarded vars ("ENV1") fail startup if missing; value strings with unresolved `${VAR}` also fail. |
261 | 266 | # env_vars = ["ENV1", {key = "ENV2", value = "somevalue"}, {key = "ENV3", value = "${HOST_VAR}"}, {key = "ENV4", value = "prefix ${HOST_VAR}"}, {key = "ENV5", value = "${OPTIONAL:-fallback}"}] |
262 | 267 | # backtrace.sources = {"frame symbol file path" = "path to the source file", ".../src/lib.rs" = "path to source file"} |
263 | 268 | ## Outgoing HTTP host allowlist - same syntax as activity_wasm.allowed_host. |
|
286 | 291 | ## Environment variables: Set to a specific value, use ${VAR} interpolation, or forward from the host. Default is empty. |
287 | 292 | ## Bash-style defaults are supported: ${VAR:-default} uses default when VAR is unset or empty, ${VAR-default} when unset only. |
288 | 293 | ## Defaults can themselves contain ${...} interpolations. |
| 294 | +## Note: only `${VAR}` triggers interpolation; `$VAR` (no braces) is treated as a literal string. |
| 295 | +## Forwarded vars ("ENV1") fail startup if missing; value strings with unresolved `${VAR}` also fail. |
289 | 296 | # env_vars = ["ENV1", {key = "ENV2", value = "somevalue"}, {key = "ENV3", value = "${HOST_VAR}"}, {key = "ENV4", value = "prefix ${HOST_VAR}"}, {key = "ENV5", value = "${OPTIONAL:-fallback}"}] |
290 | 297 | ## Outgoing HTTP host allowlist - same syntax as activity_wasm.allowed_host. |
291 | 298 | # [[webhook_endpoint_js.allowed_host]] |
|
0 commit comments