25 lines
860 B
TOML
25 lines
860 B
TOML
|
spin_manifest_version = 2
|
||
|
|
||
|
[application]
|
||
|
name = "blob-proxy"
|
||
|
version = "0.1.0"
|
||
|
authors = ["Peter Kurfer <peter@icb4dc0.de>"]
|
||
|
description = ""
|
||
|
|
||
|
[variables]
|
||
|
domain_mapping = { default = '{"docs.git-age.icb4dc0.de":"1661580-git-age.fsn1.your-objectstorage.com","localhost:3000":"1661580-git-age.fsn1.your-objectstorage.com","docs.supabase-operator.icb4dc0.de":"1661580-supabase-operator-docs.hel1.your-objectstorage.com"}'}
|
||
|
|
||
|
[[trigger.http]]
|
||
|
route = "/..."
|
||
|
component = "blob-proxy"
|
||
|
|
||
|
[component.blob-proxy]
|
||
|
source = "main.wasm"
|
||
|
allowed_outbound_hosts = [
|
||
|
"https://1661580-blog.fsn1.your-objectstorage.com",
|
||
|
"https://1661580-supabase-operator-docs.hel1.your-objectstorage.com"
|
||
|
]
|
||
|
[component.blob-proxy.build]
|
||
|
command = "tinygo build -target=wasip1 -gc=leaking -no-debug -scheduler=none -buildmode=c-shared -o main.wasm main.go"
|
||
|
watch = ["**/*.go", "go.mod"]
|