This is an automated email from the ASF dual-hosted git repository. shuber pushed a commit to branch unomi-3-dev in repository https://gitbox.apache.org/repos/asf/unomi.git
commit 68149aa7caced7e2acff9ce6e3f87f306b6219f5 Author: Ashwin <[email protected]> AuthorDate: Thu Mar 27 11:55:51 2025 -0400 Updated health check even for insecure elastic deployments Updated health check even for insecure elastic deployments # Conflicts: # docker/src/main/docker/entrypoint.sh --- docker/src/main/docker/entrypoint.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker/src/main/docker/entrypoint.sh b/docker/src/main/docker/entrypoint.sh index 45b556c6c..b23cd2b1a 100755 --- a/docker/src/main/docker/entrypoint.sh +++ b/docker/src/main/docker/entrypoint.sh @@ -85,6 +85,13 @@ else IFS=',' read -ra NODES <<< "${UNOMI_ELASTICSEARCH_ADDRESSES}" fi +# Ensure curl options allow insecure deployments when needed. +# - For HTTPS with self-signed certs: add -k +# - For HTTP: -k is harmless, but we only add it when schema is https to keep things tidy. +if [ "$schema" = "https" ]; then + curl_opts="$curl_opts -k" +fi + # Wait for search engine to be ready echo "Waiting for ${SEARCH_ENGINE} to be ready..." echo "Checking nodes: ${NODES[@]}"
