Files
PostConvert/fly.toml
2026-03-14 10:02:29 -07:00

32 lines
628 B
TOML

# fly.toml
app = "postconvert"
primary_region = "sjc"
[build]
dockerfile = "Dockerfile"
[[vm]]
memory = "1gb"
[http_service]
internal_port = 8080
force_https = true
auto_start_machines = true
auto_stop_machines = true
min_machines_running = 0
max_machines_running = 2
# Allow 2 concurrent connections so /health can succeed while /convert is running.
# We enforce "only 1 conversion at a time" in server.js.
concurrency = { soft_limit = 2, hard_limit = 2 }
grace_period = "30s"
[[http_service.checks]]
grace_period = "10s"
interval = "15s"
method = "GET"
path = "/health"
timeout = "5s"