When elasticsearch is in ssl, one must add https:// before hostname in the admin.
Bonus Nginx config
location = / {
allow xx.xx.xx.xx/xx; #magento backend ip
deny all;
proxy_pass http://localhost:9200/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}