I have Nginx as a LB which sits in front of the ECE proxy.
When I added a wildcard DNS which pointed directly to the ECE proxy IP, I was able to connect to the cluster using the cluster endpoint. The DNS record is: *.ece.org -> 10.1.2.3, where 10.1.2.3 is the proxy IP)
When a LB sits in front of the proxy, the connection does not work. First, I added a wildcard DNS which points to the LB *.ece.org -> 10.1.2.99 (where 10.1.2.99 is the IP of the load balancer)
Then, in the nginx load balancer, the conf file is as follows:
Yes, I added the proxy_http_version 1.1 and proxy_set_header HOST $host lines and the cluster endpoint URL is able to connect via the nginx load balancer now. Thanks for the tip
However, there is a need to remove the port from the URL, otherwise the endpoint does not connect. e.g. http://(clusterID).ece.org can connect but http://(clusterID).ece.org:9200 is not able to connect.
Is this considered correct or is there additional configuration needed?