Refactors nginx cookbook