# fly.toml app configuration file generated for pingcap-social on 2026-03-17T21:49:29-07:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'pingcap-social'
primary_region = 'sjc'

[build]

[deploy]
  

[http_service]
  internal_port = 3000
  force_https = true
  auto_stop_machines = 'stop'
  auto_start_machines = true
  min_machines_running = 1
  processes = ['app']

[mounts]
  source = "uploads_data"
  destination = "/app/.uploads"

# Keep at least 1 machine running so the internal scheduler never stops.
# The scheduler is self-contained (instrumentation.ts) — no external cron needed.
# This health check doubles as a scheduler liveness probe.
[[http_service.checks]]
  interval = "60s"
  timeout = "10s"
  grace_period = "30s"
  method = "GET"
  path = "/api/v1/health"

[[vm]]
  memory = '1gb'
  cpu_kind = 'shared'
  cpus = 1
  memory_mb = 1024
