-
Notifications
You must be signed in to change notification settings - Fork 0
/
spin.toml
46 lines (36 loc) · 1.41 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
spin_manifest_version = 2
[application]
name = "lipl-storage-spin"
version = "0.10.3"
authors = ["paulusminus <[email protected]>"]
description = "Lipl Storage on spin"
[[trigger.http]]
route = "/lipl/api/v1/..."
component = "lipl-storage-spin"
[[trigger.http]]
route = "/..."
component = "fileserver"
[variables]
lipl_username = { required = true }
lipl_password = { required = true }
[component.lipl-storage-spin]
source = "target/wasm32-wasip1/release/lipl_storage_spin.wasm"
allowed_outbound_hosts = []
sqlite_databases = ["default"]
[component.lipl-storage-spin.variables]
lipl_username = "{{ lipl_username }}"
lipl_password = "{{ lipl_password }}"
[component.lipl-storage-spin.build]
command = "cargo build --target wasm32-wasip1 --release"
watch = ["src/**/*.rs", "Cargo.toml"]
[component.lipl-storage-spin.tool.spin-test]
source = "../lipl-storage-test/target/wasm32-wasip1/release/lipl_storage_test.wasm"
build = "cargo component build --release --target=wasm32-wasip1"
workdir = "../lipl-storage-test"
sqlite_databases = ["default"]
[component.lipl-storage-spin.tool.spin-test.variables]
lipl_username = "{{ lipl_username }}"
lipl_password = "{{ lipl_password }}"
[component.fileserver]
source = { url = "https://github.com/fermyon/spin-fileserver/releases/download/v0.2.1/spin_static_fs.wasm", digest = "sha256:5f05b15f0f7cd353d390bc5ebffec7fe25c6a6d7a05b9366c86dcb1a346e9f0f" }
files = [{ source = "pwa", destination = "/" }]