Files
PostConvert/fly.toml
2026-03-13 17:34:12 -07:00

29 lines
603 B
TOML

# fly.toml
app = "postconvert"
primary_region = "sjc"
[build]
dockerfile = "Dockerfile"
[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"