summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-07-02 09:07:37 +0200
committerAlan Pearce2023-07-02 09:07:37 +0200
commitd6bae2242d1e048866300f0e2de7f1700ce71151 (patch)
tree61f707657f10d42db9ca240da83bd7f6e0b7e372
parentb180e25232ba4fd943c5eb5ff6ca0a1d70ee7e16 (diff)
downloadwebsite-d6bae2242d1e048866300f0e2de7f1700ce71151.tar.lz
website-d6bae2242d1e048866300f0e2de7f1700ce71151.tar.zst
website-d6bae2242d1e048866300f0e2de7f1700ce71151.zip
Add HTTP health check
-rw-r--r--fly.toml11
1 files changed, 11 insertions, 0 deletions
diff --git a/fly.toml b/fly.toml
index 1bc1440..df32d8a 100644
--- a/fly.toml
+++ b/fly.toml
@@ -25,3 +25,14 @@ primary_region = "ams"
     handlers = ["tls"]
     port = "443"
     tls_options = { "alpn" = ["h2"] }
+  [[services.http_checks]]
+    interval = 10000
+    grace_period = "5s"
+    method = "get"
+    path = "/"
+    protocol = "http"
+    restart_limit = 0
+    timeout = 2000
+    tls_skip_verify = false
+    [services.http_checks.headers]
+    Host = "alanpearce.eu"