You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/v4/redis-trigger.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ You can use [application variables](./variables.md#adding-variables-to-your-appl
53
53
54
54
## Redis Trigger Authentication
55
55
56
-
By default, Spin does not authenticate to Redis. You can work around this by providing a password in the `redis://` URL. For example: `address = "redis://:{{ password }}@localhost:6379"`. Here `password` is an [application variable](./variables.md#adding-variables-to-your-applications) as mentioned above.
56
+
By default, Spin does not authenticate to Redis. You can work around this by providing a password in the `redis://` URL. For example: `address = "redis://:\{{ password }}@localhost:6379"`. Here `password` is an [application variable](./variables.md#adding-variables-to-your-applications) as mentioned above.
57
57
58
58
> Do not hard-code passwords in code committed to version control systems.
Copy file name to clipboardExpand all lines: content/v4/variables.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,13 +83,13 @@ component = "api-consumer"
83
83
source = "app.wasm"
84
84
[component.api-consumer.variables]
85
85
token = "\{{ api_token }}"
86
-
api_uri = "\{{ api_uri }}
86
+
api_uri = "\{{ api_uri }}"
87
87
api_version = "v1"
88
88
```
89
89
90
90
## Using Variables From Applications
91
91
92
-
The Spin SDK surfaces the Spin configuration interface to your language. The [interface](https://github.com/spinframework/spin/blob/main/wit/deps/spin@2.0.0/variables.wit) consists of one operation:
92
+
The Spin SDK surfaces the Spin configuration interface to your language. The [interface](https://github.com/spinframework/spin/blob/main/wit/deps/spin-variables%403.0.0/variables.wit) consists of one operation:
@@ -338,4 +338,4 @@ If you run into the following error, you've most likely not configured the compo
338
338
Handler returned an error: Error::Undefined("no variable for \"<component-id>\".\"your-variable\"")
339
339
```
340
340
341
-
To fix this, edit the `spin.toml` and add to the `[component.<component-id>.variables]` table a line such as `<your-variable> = "{{ app-variable }}".` See [above](#adding-variables-to-your-applications) for more information.
341
+
To fix this, edit the `spin.toml` and add to the `[component.<component-id>.variables]` table a line such as `<your-variable> = "\{{ app-variable }}".` See [above](#adding-variables-to-your-applications) for more information.
0 commit comments