-
Notifications
You must be signed in to change notification settings - Fork 0
/
spin.toml
84 lines (66 loc) · 2.17 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
spin_manifest_version = 2
[application]
authors = ["David Wallace Croft <[email protected]>"]
description = "Prototype of a Fermyon Spin application"
name = "spin-prototype"
version = "0.0.0-SNAPSHOT"
[component.test0]
files = [{ source = "assets", destination = "/" }]
# https://github.com/fermyon/spin/issues/2112
source = { url = "https://github.com/fermyon/spin-fileserver/releases/download/v0.2.1/spin_static_fs.wasm", digest = "sha256:5f05b15f0f7cd353d390bc5ebffec7fe25c6a6d7a05b9366c86dcb1a346e9f0f" }
# source = "../spin-fileserver/target/wasm32-wasi/release/spin_static_fs.wasm"
[component.test1]
allowed_outbound_hosts = []
source = "test1/target/wasm32-wasi/release/test1.wasm"
[component.test1.build]
command = "cargo build --target wasm32-wasi --release"
watch = ["src/**/*.rs", "Cargo.toml"]
workdir = "test1"
[component.test2]
allowed_outbound_hosts = []
key_value_stores = ["default"]
source = "test2/target/wasm32-wasi/release/test2.wasm"
[component.test2.build]
command = "cargo build --target wasm32-wasi --release"
watch = ["src/**/*.rs", "Cargo.toml"]
workdir = "test2"
[component.test3]
allowed_outbound_hosts = []
source = "test3/target/wasm32-wasi/release/test3.wasm"
[component.test3.build]
command = "cargo build --target wasm32-wasi --release"
watch = ["src/**/*.rs", "Cargo.toml"]
workdir = "test3"
[component.test4]
ai_models = ["llama2-chat"]
allowed_outbound_hosts = []
source = "test4/target/wasm32-wasi/release/test4.wasm"
[component.test4.build]
command = "cargo build --target wasm32-wasi --release"
watch = ["src/**/*.rs", "Cargo.toml"]
workdir = "test4"
[component.test5]
allowed_outbound_hosts = ["http://self", "https://self"]
source = "test5/target/wasm32-wasi/release/test5.wasm"
[component.test5.build]
command = "cargo build --target wasm32-wasi --release"
watch = ["src/**/*.rs", "Cargo.toml"]
workdir = "test5"
[[trigger.http]]
component = "test0"
route = "/..."
[[trigger.http]]
component = "test1"
route = "/test1/..."
[[trigger.http]]
component = "test2"
route = "/test2/..."
[[trigger.http]]
component = "test3"
route = "/test3/..."
[[trigger.http]]
component = "test4"
route = "/test4/..."
[[trigger.http]]
component = "test5"
route = "/test5/..."