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.toml39
1 files changed, 18 insertions, 21 deletions
diff --git a/fly.toml b/fly.toml
index 1ac7973..45f70ee 100644
--- a/fly.toml
+++ b/fly.toml
@@ -10,34 +10,31 @@ primary_region = "ams"
   image = "registry.fly.io/alanpearce-eu"
 
 [env]
-  BASE_URL = "https://alanpearce.eu"
   PORT = "80"
-  REDIRECT_OTHER_HOSTNAMES = "true"
+  TLS = "true"
 
-[http_service]
+[[services]]
   internal_port = 80
-  force_https = true
-  auto_stop_machines = false
-  auto_start_machines = true
-  min_machines_running = 3
-  processes = [ "app" ]
-
-  [[http_service.checks]]
-    grace_period = "15s"
-    interval = "15s"
-    method = "GET"
-    timeout = "1s"
-    path = "/health"
-
-  [http_service.concurrency]
+
+  [services.concurrency]
     type = "requests"
     soft_limit = 15000
 
-  [http_service.http_options]
-    h2_backend = true
+  [[services.ports]]
+    port = 80
+
+[[services]]
+  internal_port = 443
+
+  [[services.ports]]
+    port = 443
 
-    [http_service.http_options.response]
-      pristine = true
+  [services.concurrency]
+    type = "requests"
+    soft_limit = 15000
 
 [[vm]]
   size = "shared-cpu-1x"
+
+[[restart]]
+  policy = "always"