functions/blob-proxy/spin.toml

29 lines
953 B
TOML
Raw Permalink Normal View History

2025-01-21 16:33:58 +01:00
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"]
[component.blob-proxy.variables]
domain_mapping = "{{ domain_mapping }}"
log_level = "info"