This repository contains couple of example configurations for using Nginx as a proxy for Elasticsearch.
These examples can be run standalone from this repository -- the general pattern is:
$ nginx -p $PWD/nginx/ -c $PWD/<CONFIG FILE>
When you change the configuration, simply reload the Nginx process to pick up the changes: