-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspin.toml
More file actions
45 lines (35 loc) · 1.16 KB
/
spin.toml
File metadata and controls
45 lines (35 loc) · 1.16 KB
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
spin_manifest_version = 2
[application]
authors = ["Thorsten Hans <thorsten.hans@fermyon.com>"]
description = ""
name = "hyper-personalization"
version = "0.1.0"
[variables]
ollama_base_url = { required = true }
ollama_model = { default = "mistral" }
temperature = { default = "0.4" }
[[trigger.http]]
route = "/..."
component = "frontend"
[[trigger.http]]
route = "/api/..."
component = "api"
[component.api]
source = "api/dist/api.wasm"
exclude_files = ["**/node_modules"]
allowed_outbound_hosts = ["{{ ollama_base_url }}"]
[component.api.variables]
ollama_base_url = "{{ ollama_base_url }}"
ollama_model = "{{ ollama_model }}"
temperature = "{{ temperature }}"
[component.api.build]
command = ["npm install", "npm run build"]
watch = ["src/**/*.ts"]
workdir = "api"
[component.frontend]
source = { url = "https://github.com/fermyon/spin-fileserver/releases/download/v0.3.0/spin_static_fs.wasm", digest = "sha256:ef88708817e107bf49985c7cefe4dd1f199bf26f6727819183d5c996baa3d148" }
files = [{ source = "frontend/dist", destination = "/" }]
environment = { FALLBACK_PATH = "index.html" }
[component.frontend.build]
command = ["npm install", "npm run build"]
workdir = "frontend"