You can set the port 80
directly in your code but your application needs to run with root
privileges if the port is less than 1024
.
IMO, a better way is to use Apache
or Nginx
(HTTP server on 80) with a reverse proxy to 8080. (https://www.google.com/search?q=nginx+reverse+proxy)