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.toml38
1 files changed, 38 insertions, 0 deletions
diff --git a/fly.toml b/fly.toml
new file mode 100644
index 0000000..4b06784
--- /dev/null
+++ b/fly.toml
@@ -0,0 +1,38 @@
+app = "alanpearce-eu"
+kill_signal = "SIGINT"
+kill_timeout = 5
+primary_region = "ams"
+
+[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"