-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspin.toml
63 lines (52 loc) · 1.63 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
spin_manifest_version = 2
[application]
name = "testapp"
version = "0.1.0"
authors = ["donny"]
description = "My first spin app"
[[trigger.http]]
route = "/first"
component = "first"
[component.first]
source = "first/target/wasm32-wasip1/release/first.wasm"
allowed_outbound_hosts = []
[component.first.build]
command = "cargo build --target wasm32-wasip1 --release"
workdir = "first"
watch = ["src/**/*.rs", "Cargo.toml"]
[[trigger.http]]
route = "/second"
component = "second"
[component.second]
source = "second/target/wasm32-wasip1/release/second.wasm"
allowed_outbound_hosts = []
[component.second.build]
command = "cargo build --target wasm32-wasip1 --release"
workdir = "second"
watch = ["src/**/*.rs", "Cargo.toml"]
[[trigger.http]]
route = "/..."
component = "home"
[component.home]
source = "home/target/wasm32-wasip1/release/home.wasm"
allowed_outbound_hosts = []
[component.home.build]
command = "cargo build --target wasm32-wasip1 --release"
workdir = "home"
watch = ["src/**/*.rs", "Cargo.toml"]
[[trigger.http]]
route = "/home"
component = "landing-page"
[component.landing-page]
source = "landing-page/target/wasm32-wasip1/release/landing_page.wasm"
allowed_outbound_hosts = []
[component.landing-page.build]
command = "cargo build --target wasm32-wasip1 --release"
workdir = "landing-page"
watch = ["src/**/*.rs", "Cargo.toml"]
[[trigger.http]]
route = "/"
component = "home-redirect"
[component.home-redirect]
source = { url = "https://github.com/fermyon/spin-redirect/releases/download/v0.1.0/redirect.wasm", digest = "sha256:8bee959843f28fef2a02164f5840477db81d350877e1c22cb524f41363468e52" }
environment = { DESTINATION = "/home" }