forked from cyberviser/Hancock
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfly.toml
More file actions
45 lines (37 loc) · 1.22 KB
/
fly.toml
File metadata and controls
45 lines (37 loc) · 1.22 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
# Fly.io deployment config for Hancock — CyberViser
# Deploy: fly launch --config fly.toml
# Docs: https://fly.io/docs/
app = "hancock-cyberviser"
primary_region = "iad" # US East — change to: lhr (London), fra (Frankfurt), etc.
[build]
dockerfile = "Dockerfile"
[env]
HANCOCK_PORT = "5000"
HANCOCK_RATE_LIMIT = "60"
# Secrets (never commit these — set via CLI):
# fly secrets set HANCOCK_API_KEY=$(python -c "import secrets; print(secrets.token_urlsafe(32))")
# fly secrets set OPENAI_API_KEY=sk-... # for cloud deployments (HANCOCK_LLM_BACKEND=openai)
# fly secrets set HANCOCK_LLM_BACKEND=openai # Fly.io has no local Ollama; use OpenAI
[http_service]
internal_port = 5000
force_https = true
auto_stop_machines = true # Scales to zero when idle (saves free quota)
auto_start_machines = true
min_machines_running = 0
[http_service.concurrency]
type = "requests"
hard_limit = 25
soft_limit = 20
[[vm]]
memory = "512mb" # Free tier: 256MB RAM shared — bump if needed
cpu_kind = "shared"
cpus = 1
[checks]
[checks.health]
grace_period = "10s"
interval = "30s"
method = "GET"
path = "/health"
port = 5000
timeout = "10s"
type = "http"