Reminder that port 80 requires root. ubuntu should already have nginx running and configured out of the repos, you just need to point it to the port that Tomcat is running (which should be set to not 80, some usual candidates are 3000, 6000 and 8080)