There are a couple fo ways to piece together the best URL to use when running a local curl check
- Separate out the scheme, domain and path on the URL
- Find out if we're a solo or within a cluster to find relevant port
- Find the scheme and hostname to use from the relevant Nginx files
- Assume a request to app root will be sufficient
- Find out if we're solo or cluster to find relevant port
curl $SCHEME://localhost:$PORT/$PATH -kIH 'Host: $HTTPHOST'