-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfly.toml
More file actions
51 lines (43 loc) · 1.58 KB
/
fly.toml
File metadata and controls
51 lines (43 loc) · 1.58 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
46
47
48
49
50
51
# Fly.io Configuration for AllSource Core
# Deploy from monorepo root (Core Dockerfile needs workspace context):
# flyctl deploy --config apps/core/fly.toml --dockerfile apps/core/Dockerfile
# Scale: flyctl scale count 2 --app allsource-core
app = "allsource-core"
primary_region = "iad" # US East (Virginia) - change to your preferred region
[build]
dockerfile = "Dockerfile"
[env]
RUST_LOG = "allsource_core=info,tower_http=info"
ALLSOURCE_HOST = "::"
# PORT is automatically set by Fly.io
# Core is internal-only (bead t-0ff8). Public ingress removed 2026-04-17.
# All user-facing traffic enters through Control Plane's delegation layer.
# Internal .fly network (http://allsource-core.internal:3900) still works
# because other Fly apps in the same org reach machine IPs directly — no
# [http_service] / [[services]] block is needed. See
# docs/deployment/API_SUBDOMAIN_SETUP.md for the full topology.
#
# Rollback: restore [http_service] and re-allocate a public IPv6 with
# `fly ips allocate-v6 -a allsource-core`.
# Top-level machine orchestration (was nested under [http_service])
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 1
# Internal HTTP health check so auto_stop/auto_start don't kill a healthy
# machine. Runs inside the Fly network; does not expose anything publicly.
[checks.health]
grace_period = "10s"
interval = "30s"
method = "GET"
path = "/health"
port = 3900
protocol = "http"
timeout = "5s"
type = "http"
[[vm]]
cpu_kind = "shared"
cpus = 1
memory_mb = 512
[mounts]
source = "allsource_data"
destination = "/app/data"