# Fly.io configuration for SSH Proxy

app = 'bandit-ssh-proxy'
primary_region = 'ord'  # Chicago - change to your preferred region

[build]

[http_service]
  internal_port = 3001
  force_https = true
  auto_stop_machines = 'stop'
  auto_start_machines = true
  min_machines_running = 0
  processes = ['app']

  [[http_service.checks]]
    grace_period = '10s'
    interval = '30s'
    method = 'GET'
    timeout = '5s'
    path = '/ssh/health'

[[vm]]
  memory = '256mb'
  cpu_kind = 'shared'
  cpus = 1

[env]
  PORT = '3001'
  MAX_CONNECTIONS = '100'
  CONNECTION_TIMEOUT_MS = '3600000'

