After the node server deploys the project, you must add a port to access the home page. Is there any way to enter the public network IP to access the home page directly?

I directly enter the public network IP to access port 80, while the server port started by my node is 8083. I have to add this port to access the home page every time I visit. Is there any way to directly enter the domain name or public network IP to point directly to my home page?
for example: 47.109.34.24 access this is the default port 80, while the project starts at port 8083

Mar.04,2021

Port forwarding, forwarding port 80 to port 8083;
can be done via nginx or apache

the following is my configuration for forwarding port 80 of the corresponding domain name to the 4137 side through nginx

server
    {
        listen 80;
        -sharplisten [::]:80;
        server_name domain.com ;

        location / {
                proxy_http_version 1.1;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header Host  $http_host;
                proxy_set_header X-Nginx-Proxy true;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
                proxy_pass      http://127.0.0.1:4137;

            }

    }

you can use nginx to set forwarding

location / {
    proxy_http_version 1.1;
    proxy_pass http://127.0.0.1:8083;
}
Menu