Use nginx-mode for easier editing of server configs