dear everyone !
i tried setup & deploy with:
"env": {
"PORT": 3000,
"ROOT_URL": "http://www.mydomain.com"
},
when run app, it will start at: http://www.mydomain.com:3000
so i install new nginx ( server does not have this yet )
sudo apt-get install nginx
and add this config to sites-available: mydomain.com.conf
server {
listen *:80;
server_name mydomain.com;
return 301 $scheme://www.mydomain.com$request_uri;
}
server {
listen *:80;
server_name www.mydomain.com;
access_log /var/log/nginx/app.dev.access.log;
error_log /var/log/nginx/app.dev.error.log;
location / {
proxy_pass http://127.0.0.1:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header X-Forwarded-For $remote_addr;
}
}
i restarted nginx and reboot too, but still http://www.mydomain.com:3000
go to http://www.mydomain.com it is standard nginx welcome message.
what missing ? please help !