split out nginx stuff into seperate file