title: How to configure nginx with chef solo on vagrant?
body: <p>I have a vagrant VM that boots ok and I have provisioned it with nginx through:</p>
  
  <pre><code>config.vm.provision "chef_solo" do |chef|
  chef.add_recipe "nginx"
  </code></pre>
  
  <p>and when it boots, nginx is installed and running. Perfect. (I use berkshelf to manage the cookbooks, that one comes from opscode)<br>
  Now I want to actually configure nginx, in this case to run as a reverse proxy. I can't seem to find how. I could have a conf file ready and send it to the VM but I'm sure there is another way to take advantage of the cookbook. The best option would be to be able to configure it directly from within the Vagrant file along the lines described above. Maybe using something like custom json data as described here <a href="http://docs.vagrantup.com/v2/provisioning/chef_solo.html" rel="nofollow">http://docs.vagrantup.com/v2/provisioning/chef_solo.html</a>.<br>
  It would look something like:    </p>
  
  <pre><code>chef.json = {
      "nginx" =&gt; {
  </code></pre>
  
  <p>But the cookbook page at <a href="http://community.opscode.com/cookbooks/nginx" rel="nofollow">http://community.opscode.com/cookbooks/nginx</a> is a bit cryptic to me, there are interesting options but I don't know how to include / use them. </p>