construct the haystack url from a combinationof env vars