Make it easier to set the staging and production urls for elasticsearch

Make it easier to set the staging and production urls for elasticsearch