Reputation: 5739
How to point consul cli to HTTPS url?
I tried the below ...
export CONSUL_HTTP_ADDR=127.0.0.1:8501
consul members
Error retrieving members: Unexpected response code: 400 (Client sent an HTTP request to an HTTPS server.
)
Upvotes: 0
Views: 742
Reputation: 5739
Ah..
export CONSUL_HTTP_SSL=true
consul members
Node Address Status Type Build Protocol DC Segment
myhostname 192.168.2.198:8301 alive server 1.10.4 2 dc1 <all>
Upvotes: 1