
sudo apt updatecurl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash. ~/.nvm/nvm.shnvm install nodesudo apt-get install nginxnginx -vsystemctl start nginxsystemctl enable nginxsystemctl status nginxserver {
listen 80;
server_name example.com www.example.com;
location / {
proxy_pass http://127.0.0.1:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}sudo nginx -tsudo systemctl reload nginxsudo systemctl status nginxnslookup example.comnpm i -g pm2pm2 start npm --name "admin" -- server.cjspm2 start npm --name "frontend" -- run start pm2 start npm --name "backend" -- app.jssudo apt install certbotsudo apt install python3-certbot-nginxsudo certbot --nginx -d example.com -d www.example.com -d server.example.com -d admin.example.comsudo certbot renew --dry-run