How does nodejssserver configure host

  node.js, question
var http = require('http');
 http.createServer(function (req, res) {
 res.writeHead(200, {'Content-Type': 'text/plain'});
 res.end('Hello World\n');
 }).listen(1337);
 console.log('Server running at http://127.0.0.1:1337/');
 
 
 In this case, the address bar can be accessed by inputting ip. how can it be accessed by changing into a domain name?

http://www.nginx.cn/927.htmlNginx reverse proxy