env -i REQUEST_METHOD=GET REQUEST_URI=/ping SCRIPT_FILENAME=/app/public/index.php cgi-fcgi -bind -connect /var/opt/nomad/run/${NOMAD_JOB_NAME}-${NOMAD_ALLOC_ID}.sock | grep -E 'pong$' || (exit 2)

env -i HTTP_USER_AGENT=NomadHealthCheck/${NOMAD_SHORT_ALLOC_ID} REQUEST_METHOD=GET REQUEST_URI=/ping SCRIPT_FILENAME=/app/public/index.php cgi-fcgi -bind -connect /var/opt/nomad/run/${NOMAD_JOB_NAME}-${NOMAD_ALLOC_ID}.sock | grep -E 'pong$' || (exit 2)

Add user agent to Nomad health check
Add user agent to Nomad health check
