Notice that it provides a new resource named nginx_vhost
from nginx_vhost cookbook, it's supposed to be used into your custom recipes like this:
# foo::frontend
nginx_vhost "app_myproject.com" do
sockets [ "unix:/www/myproject.com/control/shared/sockets/unicorn.sock" ]
end
You can define another resource for the recipe used in your role web:
# foo:web
nginx_vhost "web.myproject.com" do
port 80
stream false # results no stream section in vhost config
end