about summary refs log tree commit diff stats
path: root/fly.toml
diff options
context:
space:
mode:
Diffstat (limited to 'fly.toml')
-rw-r--r--fly.toml45
1 files changed, 14 insertions, 31 deletions
diff --git a/fly.toml b/fly.toml
index 4b06784..d58112b 100644
--- a/fly.toml
+++ b/fly.toml
@@ -1,38 +1,21 @@
+# fly.toml app configuration file generated for homestead on 2023-09-14T11:40:37+02:00
+#
+# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
+#
+
 app = "alanpearce-eu"
-kill_signal = "SIGINT"
-kill_timeout = 5
 primary_region = "ams"
 
+[build]
+
 [metrics]
   port = 9091
   path = "/metrics"
 
-[env]
-  CADDY_CLUSTERING_REDIS_HOST = "fly-caddy-storage.upstash.io"
-  SITE_ROOT = "/srv"
-
-[[services]]
-  internal_port = 80
-  protocol = "tcp"
-  [services.concurrency]
-    type = "connections"
-    hard_limit = 200
-    soft_limit = 100
-  [[services.ports]]
-    handlers = ["http"]
-    port = 80
-  [[services.ports]]
-    handlers = ["tls"]
-    port = "443"
-    tls_options = { "alpn" = ["h2"] }
-  [[services.http_checks]]
-    interval = 10000
-    grace_period = "5s"
-    method = "head"
-    path = "/"
-    protocol = "http"
-    restart_limit = 0
-    timeout = 2000
-    tls_skip_verify = false
-    [services.http_checks.headers]
-    Host = "alanpearce.eu"
+[http_service]
+  internal_port = 3000
+  force_https = true
+  auto_stop_machines = false
+  auto_start_machines = true
+  min_machines_running = 3
+  processes = ["app"]