Files
nginx-proxy-manager/docker/rootfs/usr/bin/check-health
T
2026-06-10 11:24:53 +10:00

12 lines
185 B
Bash
Executable File

#!/bin/bash
OK=$(curl --silent "http://127.0.0.1:${NPM_ADMIN_PORT:-81}/api/" | jq --raw-output '.status')
if [ "$OK" == "OK" ]; then
echo "OK"
exit 0
else
echo "NOT OK"
exit 1
fi