diff options
author | Alan Pearce | 2023-09-17 07:56:42 +0200 |
---|---|---|
committer | Alan Pearce | 2023-09-17 07:56:42 +0200 |
commit | 519a5e51e28155f003d1c5a4c56db1fd6b80eeae (patch) | |
tree | 93cacb4edf0a8e370698c695582e665088d08012 | |
parent | 150234c3208b7bcc61fc9cf0291ab3ea7756a3c7 (diff) | |
download | website-519a5e51e28155f003d1c5a4c56db1fd6b80eeae.tar.lz website-519a5e51e28155f003d1c5a4c56db1fd6b80eeae.tar.zst website-519a5e51e28155f003d1c5a4c56db1fd6b80eeae.zip |
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
-rw-r--r-- | fly.toml | 2 | ||||
-rw-r--r-- | static/health.txt | 1 |
2 files changed, 2 insertions, 1 deletions
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 |