fly.toml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # fly.toml app configuration file generated for nicegui on 2023-10-05T05:09:32+02:00
  2. #
  3. # See https://fly.io/docs/reference/configuration/ for information about how to use this file.
  4. #
  5. app = "nicegui"
  6. primary_region = "lhr"
  7. kill_signal = "SIGTERM"
  8. kill_timeout = "5s"
  9. swap_size_mb = 2048
  10. [build]
  11. dockerfile = "fly.dockerfile"
  12. [deploy]
  13. strategy = "canary"
  14. [processes]
  15. app = ""
  16. [[services]]
  17. protocol = "tcp"
  18. internal_port = 8080
  19. processes = ["app"]
  20. auto_stop_machines = false
  21. auto_start_machines = true
  22. min_machines_running = 18
  23. [[services.ports]]
  24. port = 80
  25. handlers = ["http"]
  26. force_https = true
  27. [[services.ports]]
  28. port = 443
  29. handlers = ["tls", "http"]
  30. [services.concurrency]
  31. type = "requests"
  32. hard_limit = 200
  33. soft_limit = 100
  34. [[services.tcp_checks]]
  35. interval = "10s"
  36. timeout = "5s"
  37. grace_period = "30s"
  38. [[services.http_checks]]
  39. interval = "20s"
  40. timeout = "10s"
  41. grace_period = "1m0s"
  42. method = "get"
  43. path = "/status"
  44. protocol = "http"
  45. tls_skip_verify = false
  46. [[metrics]]
  47. path = "/"
  48. port = 9062