BE: Remove GraphQL check from healthcheck

Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
jokob-sk
2025-10-30 13:55:05 +11:00
parent 0079ece1e2
commit 8da136f192

View File

@@ -55,13 +55,14 @@ else
log_error "Port ${PORT:-20211} is not responding or doesn't contain 'netalertx'" log_error "Port ${PORT:-20211} is not responding or doesn't contain 'netalertx'"
fi fi
# 6. Check port 20212/graphql returns "graphql" in first lines # NOTE: GRAPHQL_PORT might not be set and is initailized as a setting with a default value in the container. It can also be initialized via APP_CONF_OVERRIDE
GRAPHQL_PORT=${GRAPHQL_PORT:-20212} # # 6. Check port 20212/graphql returns "graphql" in first lines
if curl -sf --max-time 10 "http://localhost:${GRAPHQL_PORT}/graphql" | head -10 | grep -i "graphql" > /dev/null; then # GRAPHQL_PORT=${GRAPHQL_PORT:-20212}
log_success "Port ${GRAPHQL_PORT}/graphql is responding with GraphQL content" # if curl -sf --max-time 10 "http://localhost:${GRAPHQL_PORT}/graphql" | head -10 | grep -i "graphql" > /dev/null; then
else # log_success "Port ${GRAPHQL_PORT}/graphql is responding with GraphQL content"
log_error "Port ${GRAPHQL_PORT}/graphql is not responding or doesn't contain 'graphql'" # else
fi # log_error "Port ${GRAPHQL_PORT}/graphql is not responding or doesn't contain 'graphql'"
# fi
# Summary # Summary
if [ $EXIT_CODE -eq 0 ]; then if [ $EXIT_CODE -eq 0 ]; then