From d6bae2242d1e048866300f0e2de7f1700ce71151 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 2 Jul 2023 09:07:37 +0200 Subject: Add HTTP health check --- fly.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) 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" -- cgit 1.4.1