split out nginx setup and app setup