From 519a5e51e28155f003d1c5a4c56db1fd6b80eeae Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 17 Sep 2023 07:56:42 +0200 Subject: Use a special file for health checks This should remain a static file so that the static file functionality of the server can be tested. If it were a special case inside the server router, it could potentially continue to operate whilst the server otherwise no longer works --- fly.toml | 2 +- static/health.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 static/health.txt diff --git a/fly.toml b/fly.toml index ac2573f..aa31e61 100644 --- a/fly.toml +++ b/fly.toml @@ -26,4 +26,4 @@ primary_region = "ams" interval = "30s" method = "GET" timeout = "5s" - path = "/" + path = "/health.txt" diff --git a/static/health.txt b/static/health.txt new file mode 100644 index 0000000..d86bac9 --- /dev/null +++ b/static/health.txt @@ -0,0 +1 @@ +OK -- cgit 1.4.1