Add http/https support for Elasticsearch server