By masterfung
I want to establish a link where I can access my elasticsearch droplet (to use for heroku) but i am not sure how I can do that. Can anyone with the knowledge on how to do this help me?
Thanks!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
It’s hard to give a thorough answer without knowing how you want to access your Elasticsearch instance on the other end, but generally there is nothing preventing you from doing so. In your Elasticsearch configuration, you will need to adjust the value of the network.bind_host setting. On Ubuntu, you can find the configuration file at /etc/elasticsearch/elasticsearch.yml Change:
network.bind_host: localhost
to:
network.bind_host: your.ip.addr
substituting your Droplet’s IP address for your.ip.addr.
It’s important to note that Elasticsearch does not have any built-in access controls. Making your cluster externally accessible also makes it accessible publicly unless you take further steps. I’d strongly recommend using a firewall to limit access to all but a known set of IP addresses. You can also set up basic authentication by using an Nginx proxyin front of Elasticsearch.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.