I have installed on my VPS Elasticsearch and it allows me to reach results this way
curl -XGET 'localhost:9200/customer/external/1?pretty&pretty'
However security do not allow me to reach results outside of localhost.
Here is an advice to set elasticsearch.yml to network.host: 0.0.0.0, but this expose whole API to everyone - it is possible delete indices by anyone as well. I have read also about limit all other requests, except GET, on the nginx level.
Any of these solutions makes no sense for me. I want some simple solution, to be able to reach results outside of localhost. How can I achieve that as simple as possible? Should I stick with Elasticsearch Clients?