-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspin.toml
53 lines (46 loc) · 1.48 KB
/
spin.toml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
spin_manifest_version = "1"
authors = ["macolso <[email protected]>"]
description = ""
name = "stargazer_counter"
trigger = { type = "http", base = "/" }
version = "0.1.1"
[variables]
gh_auth_token = { required = true }
owner = { required = true }
repo = { required = true }
[[component]]
id = "star-counter"
source = "app.wasm"
allowed_http_hosts = ["https://api.github.com"]
key_value_stores = ["default"]
[component.trigger]
route = "/..."
[component.build]
command = "spin py2wasm app -o app.wasm"
watch = ["app.py", "Pipfile"]
[component.config]
gh_auth_token = "{{ gh_auth_token }}"
owner = "fermyon"
repo = "spin"
[[component]]
source = { url = "https://github.com/radu-matei/spin-kv-explorer/releases/download/v0.7.0/spin-kv-explorer.wasm", digest = "sha256:31a7ad7d7f72cdfa77855e4fe1a607bcdd0129d1ca4bbeff599e6ec09c8ce93c" }
id = "kv-explorer"
# add or remove stores you want to explore here
key_value_stores = ["default"]
[component.trigger]
route = "/internal/kv-explorer/..."
[[component]]
id = "api"
source = "api/target/api.wasm"
key_value_stores = ["default"]
[component.trigger]
route = "/api/..."
[component.build]
command = "npm run build"
workdir = "api"
[[component]]
source = { url = "https://github.com/fermyon/spin-fileserver/releases/download/v0.0.2/spin_static_fs.wasm", digest = "sha256:65456bf4e84cf81b62075e761b2b0afaffaef2d0aeda521b245150f76b96421b" }
id = "chart"
files = [ { source = "chart/static", destination = "/" } ]
[component.trigger]
route = "/static/..."