Skip to content

Commit

Permalink
update to spin 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
voigt committed Nov 26, 2023
1 parent 4091ee8 commit 1e5a1cd
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions example-1-sidecars/spin.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
spin_manifest_version = "1"
spin_manifest_version = 2

[application]
authors = ["Christoph Voigt <c.voigt@reply.de>"]
description = "This Spin application serves static files"
name = "static-server"
trigger = { type = "http", base = "/" }
version = "0.1.0"

[[component]]
source = { url = "https://github.com/fermyon/spin-fileserver/releases/download/v0.0.3/spin_static_fs.wasm", digest = "sha256:38bf971900228222f7f6b2ccee5051f399adca58d71692cdfdea98997965fd0d" }
id = "static-server"
files = [{ source = "data", destination = "/" }]
[component.trigger]
[[trigger.http]]
route = "/..."
component = "static-server"

[component.static-server]
source = { url = "https://github.com/fermyon/spin-fileserver/releases/download/v0.1.0/spin_static_fs.wasm", digest = "sha256:96c76d9af86420b39eb6cd7be5550e3cb5d4cc4de572ce0fd1f6a29471536cb4" }
files = [{ source = "data", destination = "/" }]

0 comments on commit 1e5a1cd

Please sign in to comment.