Added support for reading ES configuration from environment variables