Slight refactor to make this more like edxapp and reuse nginx role