about summary refs log tree commit diff stats
path: root/fly.toml
diff options
context:
space:
mode:
authorAlan Pearce2024-06-24 17:18:27 +0200
committerAlan Pearce2024-06-24 17:18:27 +0200
commit50456c578497e9921558941eae59fa01bcf269bf (patch)
treec2520d354a789c50bffbf3bf961dc2a6e6b47659 /fly.toml
parente6dd1b5f719ea483f5e77f78c045224607707d0a (diff)
downloadwebsite-50456c578497e9921558941eae59fa01bcf269bf.tar.lz
website-50456c578497e9921558941eae59fa01bcf269bf.tar.zst
website-50456c578497e9921558941eae59fa01bcf269bf.zip
handle TLS in server with ACME
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"