Use libcurl to determine HTTP/HTTPS accessibility
When Gitea goes haywire, the load balancer (nginx) will return a 50*
error. Since our check for HTTP/HTTPS only checks the return of connect(2)
, so if the return is successful, hbsdmon thinks the service is up, even though it's effectively down.