From fdb053851919bbb0dc4bb8cfa5a532f03495f1fc Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Fri, 22 Nov 2024 16:12:46 -0500 Subject: [PATCH] add healthcheck with HTTP-mode compat --- healthcheck.bash | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 healthcheck.bash diff --git a/healthcheck.bash b/healthcheck.bash new file mode 100644 index 0000000..e26b194 --- /dev/null +++ b/healthcheck.bash @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +if [[ "${KC_HTTP_ENABLED}" == 'true' ]]; then + curl http://localhost:8080 +else + curl https://localhost:8443 -k +fi