fly.toml raw

   1  # fly.toml app configuration file generated for nwc on 2024-01-30T12:30:13+01:00
   2  #
   3  # See https://fly.io/docs/reference/configuration/ for information about how to use this file.
   4  #
   5  
   6  app = 'nwc'
   7  primary_region = 'lax'
   8  swap_size_mb = 2048
   9  # Add a kill timeout longer than LDK node shutdown timeout to ensure Alby Hub gracefully shuts down
  10  kill_timeout = 300
  11  
  12  [build]
  13    image = 'ghcr.io/getalby/hub:latest'
  14  
  15  [env]
  16    DATABASE_URI = '/data/nwc.db'
  17    LDK_LOG_LEVEL = '3'
  18    LOG_LEVEL = '4'
  19    WORK_DIR = '/data'
  20  
  21  [[mounts]]
  22    source = 'nwc_data'
  23    destination = '/data'
  24    initial_size = '1'
  25    auto_extend_size_threshold = 80
  26    auto_extend_size_increment = "1GB"
  27    auto_extend_size_limit = "5GB"
  28  
  29  [http_service]
  30    internal_port = 8080
  31    force_https = true
  32    auto_stop_machines = false
  33    auto_start_machines = true
  34    min_machines_running = 0
  35    processes = ['app']
  36  
  37  [[vm]]
  38    cpu_kind = 'shared'
  39    cpus = 1
  40    memory = '512mb'
  41