karmi/cookbook-elasticsearch — pull request #19 by andruby (2012-07-09 07:00:10+00:00)
Title: Network host options + set client_max_body_size

I added attribute options for ES's network.host, network.publish_host and network.bind_host.

I set those in the chef role file to localhost when I use nginx as proxy (so external access has to go through nginx):

```ruby
default_attributes('elasticsearch' => {'host' => 'localhost'})
```

I also set client_max_body_size to 20M because I was getting http 413 "Request entity too large" errors when sending larger documents for indexing through the nginx proxy.