-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspin.toml
33 lines (28 loc) · 1005 Bytes
/
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
spin_manifest_version = 2
[application]
name = "cloudlife"
version = "0.1.0"
authors = ["deadprogram <[email protected]>"]
description = "Conway's Game of Life in the form of a cloud-native serverless application using TinyGo"
[[trigger.http]]
route = "/universe/..."
component = "universe"
[component.universe]
source = "universe/main.wasm"
key_value_stores = ["default"]
allowed_outbound_hosts = []
[component.universe.build]
command = "tinygo build -target=wasip1 -no-debug -gc=leaking -scheduler=none -buildmode=c-shared -o main.wasm ."
workdir = "universe"
watch = ["**/*.go", "go.mod"]
[[trigger.http]]
route = "/multiverse/..."
component = "multiverse"
[component.multiverse]
source = "multiverse/main.wasm"
key_value_stores = ["default"]
allowed_outbound_hosts = ["http://self", "https://self"]
[component.multiverse.build]
command = "tinygo build -target=wasip1 -no-debug -gc=leaking -scheduler=none -buildmode=c-shared -o main.wasm ."
workdir = "multiverse"
watch = ["**/*.go", "go.mod"]