-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathspin.toml
More file actions
31 lines (24 loc) · 856 Bytes
/
spin.toml
File metadata and controls
31 lines (24 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
spin_manifest_version = 2
[application]
name = "kv-explorer"
version = "0.1.0"
authors = ["Radu Matei <radu.matei@fermyon.com>"]
[variables]
kv_explorer_user = { required = true }
kv_explorer_password = { required = true }
[application.trigger.http]
base = "/"
[[trigger.http]]
id = "trigger-golang-explorer"
component = "golang-explorer"
route = "/internal/kv-explorer/..."
[component.golang-explorer]
source = "explorer/spin-kv-explorer.wasm"
allowed_outbound_hosts = ["redis://*:*", "mysql://*:*", "postgres://*:*"]
key_value_stores = ["default"]
[component.golang-explorer.variables]
kv_credentials = "{{ kv_explorer_user }}:{{ kv_explorer_password }}"
[component.golang-explorer.build]
command = "tinygo build -target=wasi -gc=leaking -no-debug -o spin-kv-explorer.wasm main.go"
workdir = "explorer"
watch = ["**/*.go", "go.mod", "index.html"]