Skip to content

Commit

Permalink
fix example-2
Browse files Browse the repository at this point in the history
  • Loading branch information
voigt committed Nov 28, 2023
1 parent 659847b commit d1cb1ba
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions example-2-redis/spin.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
spin_version = "1"
spin_manifest_version = 2

[application]
authors = ["Christoph Voigt <[email protected]>"]
description = ""
description = "This Spin application shows configs"
name = "env-explorer"
trigger = { type = "http", base = "/" }
version = "0.1.0"

[variables]
environment = { default = "kubernetes" }

[[component]]
id = "env-explorer"
source = "env_explorer.wasm"
allowed_http_hosts = []
[[trigger.http]]
route = "/..."
component = "env-explorer"

[component.env-explorer]
source = "./env_explorer.wasm"
key_value_stores = ["default"]
[component.config]
# files = [{ source = "config", destination = "/" }]
[component.env-explorer.variables]
environment = "{{ environment }}"
[component.trigger]
route = "/..."
#cool_var = "{{ cool_var }}"


# [component.config]
# environment = "{{ environment }}"

0 comments on commit d1cb1ba

Please sign in to comment.