fly.toml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. app = "nicegui"
  2. #app = "nicegui-preview"
  3. kill_signal = "SIGTERM"
  4. kill_timeout = 5
  5. processes = []
  6. [build]
  7. dockerfile = "fly.dockerfile"
  8. [env]
  9. [deploy]
  10. # boot a single, new VM with the new release, verify its health, then
  11. # One by one, each running VM is taken down and replaced by the new release VM
  12. strategy = "rolling"
  13. [experimental]
  14. allowed_public_ports = []
  15. auto_rollback = true
  16. [[services]]
  17. internal_port = 8080
  18. processes = ["app"]
  19. protocol = "tcp"
  20. script_checks = []
  21. [services.concurrency]
  22. hard_limit = 30
  23. soft_limit = 15
  24. type = "connections"
  25. [[services.ports]]
  26. force_https = true
  27. handlers = ["http"]
  28. port = 80
  29. [[services.ports]]
  30. handlers = ["tls", "http"]
  31. port = 443
  32. [[services.tcp_checks]]
  33. interval = "10s"
  34. grace_period = "2m"
  35. restart_limit = 3
  36. timeout = "5s"
  37. [[services.http_checks]]
  38. interval = "20s"
  39. grace_period = "4m"
  40. method = "get"
  41. path = "/"
  42. protocol = "http"
  43. restart_limit = 3
  44. timeout = "10s"
  45. tls_skip_verify = false
  46. [services.http_checks.headers]
  47. [metrics]
  48. port = 9062
  49. path = "/metrics" # default for most prometheus clients