updated to use nginx cookbook and replaced data bags in nginx template with attributes