Node.js Domain Pointing Problem

hey i have a Node.js App using Node server (port : 51728)
i used nginx to make it in port 80
is currently accessible via the VPS ip
i created a A record to point to the ip so it could be accessible with my domain name but it doesnt work
i will share my record and my configuration :
DOMAIN. 1 IN A VPSIP ; cf_tags=cf-proxied:true

nginx conf :
server {
        listen       80;
    server_name DOMAIN;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

    location / {
        proxy_pass http://localhost:51728;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }
Was this page helpful?